projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix building documentation when using OpenBSD's make.
[tinc]
/
src
/
protocol_auth.c
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index
6d1435b
..
95bb751
100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-239,7
+239,7
@@
bool metakey_h(connection_t *c) {
/* Check if the length of the meta key is all right */
/* Check if the length of the meta key is all right */
- if(strlen(buffer) != len * 2) {
+ if(strlen(buffer) !=
(size_t)
len * 2) {
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name, c->hostname, "wrong keylength");
return false;
}
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name, c->hostname, "wrong keylength");
return false;
}
@@
-372,7
+372,7
@@
bool challenge_h(connection_t *c) {
/* Check if the length of the challenge is all right */
/* Check if the length of the challenge is all right */
- if(strlen(buffer) != len * 2) {
+ if(strlen(buffer) !=
(size_t)
len * 2) {
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name,
c->hostname, "wrong challenge length");
return false;
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name,
c->hostname, "wrong challenge length");
return false;
@@
-442,7
+442,7
@@
bool chal_reply_h(connection_t *c) {
/* Check if the length of the hash is all right */
/* Check if the length of the hash is all right */
- if(strlen(hishash) != EVP_MD_size(c->outdigest) * 2) {
+ if(strlen(hishash) !=
(size_t)
EVP_MD_size(c->outdigest) * 2) {
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name,
c->hostname, "wrong challenge reply length");
return false;
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name,
c->hostname, "wrong challenge reply length");
return false;