projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76b41ba
)
Use correct digest length when checking a received key.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 30 Apr 2010 21:11:48 +0000
(23:11 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 30 Apr 2010 21:11:48 +0000
(23:11 +0200)
src/protocol_auth.c
patch
|
blob
|
history
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index 8d4dfb939eb881824e3cdd96e739f4c5190a4aca..ca9e86b8a293d704331ac4eb9554d4d45673a45a 100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-261,7
+261,7
@@
bool send_challenge(connection_t *c) {
bool challenge_h(connection_t *c, char *request) {
char buffer[MAX_STRING_SIZE];
size_t len = rsa_size(&myself->connection->rsa);
- size_t digestlen = digest_length(&c->
out
digest);
+ size_t digestlen = digest_length(&c->
in
digest);
char digest[digestlen];
if(sscanf(request, "%*d " MAX_STRING, buffer) != 1) {