X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=d5b702d90bb4b49dfb4c4fb4a749921f5bf8029d;hp=81189332495ccd7b1a0618ada156a5358d31ca74;hb=5a161e86cf35351f5274d7a8e17fef4630b40686;hpb=fb5588856fa4dd6f140c72f7360302fe85b20c75 diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 81189332..d5b702d9 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -117,6 +117,8 @@ static bool send_proxyrequest(connection_t *c) { case PROXY_SOCKS4A: logger(LOG_ERR, "Proxy type not implemented yet"); return false; + case PROXY_EXEC: + return true; default: logger(LOG_ERR, "Unknown proxy type"); return false; @@ -242,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; } @@ -311,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; }