Skip to content

Commit

Permalink
Adds support for OpenSSL 1.1.1 (#956)
Browse files Browse the repository at this point in the history
Adds support for OpenSSL 1.1.1, given updated websocketpp and boost/asio, at least on macOS and iOS.
(see #949)
  • Loading branch information
cpsauer authored and BillyONeal committed Nov 7, 2018
1 parent b72a910 commit 4c3edd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Release/src/http/client/x509_cert_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ bool verify_cert_chain_platform_specific(boost::asio::ssl::verify_context& verif
return true;
}

#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
STACK_OF(X509)* certStack = X509_STORE_CTX_get_chain(storeContext);
#else
STACK_OF(X509)* certStack = X509_STORE_CTX_get0_chain(storeContext);
#endif

const int numCerts = sk_X509_num(certStack);
if (numCerts < 0)
{
Expand Down

0 comments on commit 4c3edd6

Please sign in to comment.