diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-11 13:54:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-11 13:54:47 -0400 |
commit | 922208bd2d63c282a189b6fdd0da29ff40c08e82 (patch) | |
tree | 87361f6f8df1a6d1b9a1143eca1be4c6d06ac1f4 /src/lib/crypt_ops/crypto_dh.c | |
parent | 8e2df9886003c12b0624c54b950090c8fc36396b (diff) | |
download | tor-922208bd2d63c282a189b6fdd0da29ff40c08e82.tar.gz tor-922208bd2d63c282a189b6fdd0da29ff40c08e82.zip |
Extract and rename crypto_log_errors().
Diffstat (limited to 'src/lib/crypt_ops/crypto_dh.c')
-rw-r--r-- | src/lib/crypt_ops/crypto_dh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/crypt_ops/crypto_dh.c b/src/lib/crypt_ops/crypto_dh.c index 3e82996935..ab06fd4969 100644 --- a/src/lib/crypt_ops/crypto_dh.c +++ b/src/lib/crypt_ops/crypto_dh.c @@ -269,7 +269,7 @@ crypto_dh_new(int dh_type) /* LCOV_EXCL_START * This error condition is only reached when an allocation fails */ err: - crypto_log_errors(LOG_WARN, "creating DH object"); + crypto_openssl_log_errors(LOG_WARN, "creating DH object"); if (res->dh) DH_free(res->dh); /* frees p and g too */ tor_free(res); return NULL; @@ -309,7 +309,7 @@ crypto_dh_generate_public(crypto_dh_t *dh) if (!DH_generate_key(dh->dh)) { /* LCOV_EXCL_START * To test this we would need some way to tell openssl to break DH. */ - crypto_log_errors(LOG_WARN, "generating DH key"); + crypto_openssl_log_errors(LOG_WARN, "generating DH key"); return -1; /* LCOV_EXCL_STOP */ } @@ -472,7 +472,7 @@ crypto_dh_compute_secret(int severity, crypto_dh_t *dh, error: result = -1; done: - crypto_log_errors(LOG_WARN, "completing DH handshake"); + crypto_openssl_log_errors(LOG_WARN, "completing DH handshake"); if (pubkey_bn) BN_clear_free(pubkey_bn); if (secret_tmp) { |