mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-02-21 03:32:17 +00:00
Abstract TLS API support (OpenSSL and MbedTLS backends)
This commit is contained in:
@@ -30,7 +30,7 @@ int main(void) {
|
||||
} else {
|
||||
cout << "error code: " << res.error() << std::endl;
|
||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||
auto result = cli.get_openssl_verify_result();
|
||||
auto result = cli.get_verify_result();
|
||||
if (result) {
|
||||
cout << "verify error: " << X509_verify_cert_error_string(result) << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user