File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#pragma once
27
27
28
- #include < vector>
29
28
#include < string>
30
29
31
30
#if defined(__APPLE__) || (defined(ANDROID) || defined(__ANDROID__)) || (defined(_WIN32) && !defined(__cplusplus_winrt) && !defined(_M_ARM) && !defined(CPPREST_EXCLUDE_WEBSOCKETS))
@@ -52,13 +51,11 @@ namespace web { namespace http { namespace client { namespace details {
52
51
// / Using platform specific APIs verifies server certificate.
53
52
// / Currently implemented to work on iOS, Android, and OS X.
54
53
// / </summary>
55
- // / <param name="verifyCtx">Boost.ASIO context get certificate chain from.</param>
54
+ // / <param name="verifyCtx">Boost.ASIO context to get certificate chain from.</param>
56
55
// / <param name="hostName">Host name from the URI.</param>
57
56
// / <returns>True if verification passed and server can be trusted, false otherwise.</returns>
58
57
bool verify_cert_chain_platform_specific (boost::asio::ssl::verify_context &verifyCtx, const std::string &hostName);
59
58
60
- bool verify_X509_cert_chain (const std::vector<std::string> &certChain, const std::string &hostName);
61
-
62
59
}}}}
63
60
64
61
#endif
Original file line number Diff line number Diff line change 28
28
#if defined(__APPLE__) || (defined(ANDROID) || defined(__ANDROID__)) || (defined(_WIN32) && !defined(__cplusplus_winrt) && !defined(_M_ARM) && !defined(CPPREST_EXCLUDE_WEBSOCKETS))
29
29
30
30
#include " cpprest/details/x509_cert_utilities.h"
31
+ #include < vector>
31
32
32
33
#if defined(ANDROID) || defined(__ANDROID__)
33
34
#include < jni.h>
48
49
49
50
namespace web { namespace http { namespace client { namespace details {
50
51
52
+ static bool verify_X509_cert_chain (const std::vector<std::string> &certChain, const std::string &hostName);
53
+
51
54
bool verify_cert_chain_platform_specific (boost::asio::ssl::verify_context &verifyCtx, const std::string &hostName)
52
55
{
53
56
X509_STORE_CTX *storeContext = verifyCtx.native_handle ();
You can’t perform that action at this time.
0 commit comments