From d4936a2c78e06c8bd841e2335ecb0322beb5ccd1 Mon Sep 17 00:00:00 2001 From: Yuji Hirose Date: Fri, 31 May 2019 10:30:11 -0400 Subject: [PATCH] Fixed #155 --- httplib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 80d9c05..d9c5ddd 100644 --- a/httplib.h +++ b/httplib.h @@ -2472,7 +2472,8 @@ SSLClient::verify_host_with_subject_alt_name(X509 *server_cert) const { } auto alt_names = - X509_get_ext_d2i(server_cert, NID_subject_alt_name, nullptr, nullptr); + static_cast( + X509_get_ext_d2i(server_cert, NID_subject_alt_name, nullptr, nullptr)); if (alt_names) { auto dsn_matched = false;