Commit b6dfac67 authored by Zonr Chang's avatar Zonr Chang Committed by Facebook Github Bot

Fix call to SSL_SESSION_up_ref().

Summary:
`SSL_SESSION_up_ref()` in both BoringSSL and OpenSSL 1.1.0 takes a
`SSL_SESSION*`.
Closes https://github.com/facebook/folly/pull/493

Reviewed By: yfeldblum

Differential Revision: D4009706

Pulled By: Orvid

fbshipit-source-id: 68ea201821e7a6d5835a79b34187344ba251e239
parent 339ce0bf
...@@ -99,7 +99,7 @@ void SSLSessionImpl::upRef() { ...@@ -99,7 +99,7 @@ void SSLSessionImpl::upRef() {
#if defined(OPENSSL_IS_102) || defined(OPENSSL_IS_101) #if defined(OPENSSL_IS_102) || defined(OPENSSL_IS_101)
CRYPTO_add(&session_->references, 1, CRYPTO_LOCK_SSL_SESSION); CRYPTO_add(&session_->references, 1, CRYPTO_LOCK_SSL_SESSION);
#elif defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_110) #elif defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_110)
SSL_SESSION_up_ref(&session_); SSL_SESSION_up_ref(session_);
#endif #endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment