projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move RSA key generation into the wrappers.
[tinc]
/
src
/
protocol_auth.c
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index
46bb6e6
..
1fb37fc
100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-207,7
+207,7
@@
bool metakey_h(connection_t *c, char *request) {
/* Decrypt the meta key */
if(!rsa_private_decrypt(&myself->connection->rsa, enckey, len, key)) {
/* Decrypt the meta key */
if(!rsa_private_decrypt(&myself->connection->rsa, enckey, len, key)) {
- logger(LOG_ERR, _("Error during
en
cryption of meta key for %s (%s)"), c->name, c->hostname);
+ logger(LOG_ERR, _("Error during
de
cryption of meta key for %s (%s)"), c->name, c->hostname);
return false;
}
return false;
}
@@
-335,6
+335,7
@@
bool chal_reply_h(connection_t *c, char *request) {
*/
free(c->hischallenge);
*/
free(c->hischallenge);
+ c->hischallenge = NULL;
c->allow_request = ACK;
return send_ack(c);
c->allow_request = ACK;
return send_ack(c);