Skip to content

Commit d5bf009

Browse files
committed
Namespace qualifying call to verify_cert_chain_platform_specific.
1 parent 4d63199 commit d5bf009

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Release/include/cpprest/x509_cert_utilities.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include <vector>
3131
#include <string>
3232

33+
#if defined(__APPLE__) || defined(ANDROID)
34+
3335
#include <boost/asio/ssl.hpp>
3436

3537
namespace web { namespace http { namespace client { namespace details {
@@ -46,3 +48,5 @@ bool verify_cert_chain_platform_specific(boost::asio::ssl::verify_context &verif
4648
bool verify_X509_cert_chain(const std::vector<std::string> &certChain, const std::string &hostName);
4749

4850
}}}}
51+
52+
#endif

Release/src/websockets/client/ws_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class wspp_client : public _websocket_client_impl, public std::enable_shared_fro
181181
}
182182
if(m_openssl_failed)
183183
{
184-
return verify_cert_chain_platform_specific(verifyCtx, m_uri.host());
184+
return http::client::details::verify_cert_chain_platform_specific(verifyCtx, m_uri.host());
185185
}
186186
#endif
187187
boost::asio::ssl::rfc2818_verification rfc2818(m_uri.host());

0 commit comments

Comments
 (0)