diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-26 16:52:47 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-26 16:52:47 +0000 |
commit | b410dff6c078022a7478ce2d17c07ccb38104081 (patch) | |
tree | 1742a579463a020e45cbc76d181b2345f400ba8c /src/common | |
parent | 2b1441e49faf75133fc2a4db900a3f0f01075b65 (diff) | |
download | tor-b410dff6c078022a7478ce2d17c07ccb38104081.tar tor-b410dff6c078022a7478ce2d17c07ccb38104081.tar.gz |
Log pending TLS errors in a couple more places, in case they are possible.
svn:r1716
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/tortls.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index feeb3caf2..e3078a756 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -199,6 +199,7 @@ tor_tls_create_certificate(crypto_pk_env_t *rsa, goto done; error: + tls_log_errors(LOG_WARN, "generating certificate"); if (x509) { X509_free(x509); x509 = NULL; @@ -317,6 +318,7 @@ tor_tls_context_new(crypto_pk_env_t *identity, return 0; error: + tls_log_errors(LOG_WARN, "creating TLS context"); if (pkey) EVP_PKEY_free(pkey); if (rsa) @@ -434,7 +436,7 @@ tor_tls_handshake(tor_tls *tls) r = tor_tls_get_error(tls,r,0, "handshaking", LOG_INFO); if (r == TOR_TLS_DONE) { tls->state = TOR_TLS_ST_OPEN; - } + } return r; } @@ -558,9 +560,6 @@ tor_tls_verify(tor_tls *tls, crypto_pk_env_t *identity_key) time_t now, t; int r = -1; - /* XXXX */ - tls_log_errors(LOG_WARN, "preparing to verify"); - if (!(cert = SSL_get_peer_certificate(tls->ssl))) return -1; |