From 3bd810ea79d6933839ddac4a2cf1445c51947d38 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 30 Sep 2012 13:45:39 +0200 Subject: [PATCH] =?utf8?q?Attribution=20for=20Martin=20Sch=C3=BCrrer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- THANKS | 1 + src/protocol_auth.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/THANKS b/THANKS index 8da657c8..42b1c0aa 100644 --- a/THANKS +++ b/THANKS @@ -27,6 +27,7 @@ We would like to thank the following people for their contributions to tinc: * Mark Glines * Markus Goetz * Martin Kihlgren +* Martin Schürrer * Matias Carrasco * Max Rijevski * Menno Smits diff --git a/src/protocol_auth.c b/src/protocol_auth.c index d5b702d9..0ef54682 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -244,7 +244,7 @@ bool send_metakey(connection_t *c) { */ if(RSA_public_encrypt(len, (unsigned char *)c->outkey, (unsigned char *)buffer, c->rsa_key, RSA_NO_PADDING) != len) { - logger(LOG_ERR, "Error during encryption of meta key for %s (%s) %s", + logger(LOG_ERR, "Error during encryption of meta key for %s (%s): %s", c->name, c->hostname, ERR_error_string(ERR_get_error(), NULL)); return false; } @@ -313,7 +313,7 @@ bool metakey_h(connection_t *c) { /* Decrypt the meta key */ if(RSA_private_decrypt(len, (unsigned char *)buffer, (unsigned char *)c->inkey, myself->connection->rsa_key, RSA_NO_PADDING) != len) { /* See challenge() */ - logger(LOG_ERR, "Error during decryption of meta key for %s (%s) %s", + logger(LOG_ERR, "Error during decryption of meta key for %s (%s): %s", c->name, c->hostname, ERR_error_string(ERR_get_error(), NULL)); return false; } -- 2.39.5