diff options
Diffstat (limited to 'src/or/connection_op.c')
-rw-r--r-- | src/or/connection_op.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection_op.c b/src/or/connection_op.c index 89204412e6..4f705f59c5 100644 --- a/src/or/connection_op.c +++ b/src/or/connection_op.c @@ -51,7 +51,7 @@ int op_handshake_process_keys(connection_t *conn) { log(LOG_DEBUG,"op_handshake_process_keys() : Received auth."); /* decrypt response */ - retval = crypto_pk_private_decrypt(conn->prkey, auth_cipher, 128, auth_plain,RSA_PKCS1_PADDING); + retval = crypto_pk_private_decrypt(getprivatekey(), auth_cipher, 128, auth_plain,RSA_PKCS1_PADDING); if (retval == -1) { log(LOG_ERR,"Decrypting keys from new OP failed."); @@ -110,9 +110,9 @@ int connection_op_finished_flushing(connection_t *conn) { } -int connection_op_create_listener(crypto_pk_env_t *prkey, struct sockaddr_in *local) { +int connection_op_create_listener(struct sockaddr_in *local) { log(LOG_DEBUG,"connection_create_op_listener starting"); - return connection_create_listener(prkey, local, CONN_TYPE_OP_LISTENER); + return connection_create_listener(local, CONN_TYPE_OP_LISTENER); } int connection_op_handle_listener_read(connection_t *conn) { |