X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=0ef546822146d5f8b2b5b329e7277fa8fecb2b68;hp=4c721a44982f3b52ef75a016f56563202d779eab;hb=3bd810ea79d6933839ddac4a2cf1445c51947d38;hpb=5ae19cb0bb8dd6be1e9bcd560bb051f496a373ec diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 4c721a44..0ef54682 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -244,8 +244,8 @@ 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)", - c->name, c->hostname); + 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,8 +313,8 @@ 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)", - c->name, c->hostname); + 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; }