diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-17 20:39:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-17 20:39:13 -0400 |
commit | 3640c63498399f85d44358b0d3cfd8a6d62325f4 (patch) | |
tree | 4553520cc7a66ed795b184ca8f7ac4b998c59908 /src/common/crypto_rsa.c | |
parent | 16dd2f7bb0df8c6d45d62e4d515089a3a566fd8e (diff) | |
parent | d38e7ddf5b930ae7e4d3a5da63cfc32d92a8dfa7 (diff) | |
download | tor-3640c63498399f85d44358b0d3cfd8a6d62325f4.tar.gz tor-3640c63498399f85d44358b0d3cfd8a6d62325f4.zip |
Merge remote-tracking branch 'ffmancera-1/bug24658-dh_stream'
Diffstat (limited to 'src/common/crypto_rsa.c')
-rw-r--r-- | src/common/crypto_rsa.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/common/crypto_rsa.c b/src/common/crypto_rsa.c index f66cdef3c5..11fd3b42c8 100644 --- a/src/common/crypto_rsa.c +++ b/src/common/crypto_rsa.c @@ -44,27 +44,6 @@ struct crypto_pk_t RSA *key; /**< The key itself */ }; -/** Log all pending crypto errors at level <b>severity</b>. Use - * <b>doing</b> to describe our current activities. - */ -static void -crypto_log_errors(int severity, const char *doing) -{ - unsigned long err; - const char *msg, *lib, *func; - while ((err = ERR_get_error()) != 0) { - msg = (const char*)ERR_reason_error_string(err); - lib = (const char*)ERR_lib_error_string(err); - func = (const char*)ERR_func_error_string(err); - if (!msg) msg = "(null)"; - if (!lib) lib = "(null)"; - if (!func) func = "(null)"; - if (BUG(!doing)) doing = "(null)"; - tor_log(severity, LD_CRYPTO, "crypto error while %s: %s (in %s:%s)", - doing, msg, lib, func); - } -} - /** Return the number of bytes added by padding method <b>padding</b>. */ int |