Skip to content

Commit 4c3edd6

Browse files
cpsauerBillyONeal
authored andcommitted
Adds support for OpenSSL 1.1.1 (#956)
Adds support for OpenSSL 1.1.1, given updated websocketpp and boost/asio, at least on macOS and iOS. (see #949)
1 parent b72a910 commit 4c3edd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Release/src/http/client/x509_cert_utilities.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ bool verify_cert_chain_platform_specific(boost::asio::ssl::verify_context& verif
5151
return true;
5252
}
5353

54+
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
5455
STACK_OF(X509)* certStack = X509_STORE_CTX_get_chain(storeContext);
56+
#else
57+
STACK_OF(X509)* certStack = X509_STORE_CTX_get0_chain(storeContext);
58+
#endif
59+
5560
const int numCerts = sk_X509_num(certStack);
5661
if (numCerts < 0)
5762
{

0 commit comments

Comments
 (0)