You've already forked cpp-httplib
Merge branch 'ssl_error_reporting' of github.com:staticlibs/cpp-httplib into staticlibs-ssl_error_reporting
This commit is contained in:
@@ -10923,7 +10923,11 @@ inline long SSLClient::get_openssl_verify_result() const {
|
|||||||
inline SSL_CTX *SSLClient::ssl_context() const { return ctx_; }
|
inline SSL_CTX *SSLClient::ssl_context() const { return ctx_; }
|
||||||
|
|
||||||
inline bool SSLClient::create_and_connect_socket(Socket &socket, Error &error) {
|
inline bool SSLClient::create_and_connect_socket(Socket &socket, Error &error) {
|
||||||
return is_valid() && ClientImpl::create_and_connect_socket(socket, error);
|
if (!is_valid()) {
|
||||||
|
error = Error::SSLConnection;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return ClientImpl::create_and_connect_socket(socket, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assumes that socket_mutex_ is locked and that there are no requests in
|
// Assumes that socket_mutex_ is locked and that there are no requests in
|
||||||
|
|||||||
Reference in New Issue
Block a user