diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-05-13 11:21:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-05-13 11:21:38 -0400 |
commit | 92b297bb589e51e2f2653dd9c1a8dc1a86b6b7ad (patch) | |
tree | 50f1203506c8b709feeef4ae9ec684adb3d9e9a4 /src/common/tortls.c | |
parent | fa63f991c06e9753108a57e2a26a62da6e78e822 (diff) | |
download | tor-92b297bb589e51e2f2653dd9c1a8dc1a86b6b7ad.tar.gz tor-92b297bb589e51e2f2653dd9c1a8dc1a86b6b7ad.zip |
SSL_clear_mode exists; we can use it.
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index a90ae70af3..4a15670156 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -2239,8 +2239,7 @@ tor_tls_finish_handshake(tor_tls_t *tls) if (tls->isServer) { SSL_set_info_callback(tls->ssl, NULL); SSL_set_verify(tls->ssl, SSL_VERIFY_PEER, always_accept_verify_cb); - /* There doesn't seem to be a clear OpenSSL API to clear mode flags. */ - tls->ssl->mode &= ~SSL_MODE_NO_AUTO_CHAIN; + SSL_clear_mode(tls->ssl, SSL_MODE_NO_AUTO_CHAIN); #ifdef V2_HANDSHAKE_SERVER if (tor_tls_client_is_using_v2_ciphers(tls->ssl)) { /* This check is redundant, but back when we did it in the callback, |