projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle truncated message authentication codes.
[tinc]
/
src
/
protocol_auth.c
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index
93fe23e
..
aa0fd36
100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-124,7
+124,7
@@
bool send_metakey(connection_t *c) {
if(!cipher_open_blowfish_ofb(&c->outcipher))
return false;
if(!cipher_open_blowfish_ofb(&c->outcipher))
return false;
- if(!digest_open_sha1(&c->outdigest))
+ if(!digest_open_sha1(&c->outdigest
, -1
))
return false;
/* Create a random key */
return false;
/* Create a random key */
@@
-224,7
+224,7
@@
bool metakey_h(connection_t *c, char *request) {
return false;
}
return false;
}
- if(!digest_open_by_nid(&c->indigest, digest)) {
+ if(!digest_open_by_nid(&c->indigest, digest
, -1
)) {
logger(LOG_ERR, _("Error during initialisation of digest from %s (%s)"), c->name, c->hostname);
return false;
}
logger(LOG_ERR, _("Error during initialisation of digest from %s (%s)"), c->name, c->hostname);
return false;
}