mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-06 15:51:46 +00:00
Fix Windows build error
This commit is contained in:
1 parent
9f41fc0447
commit
02d3825149
1 file changed
+4
-2
@@ -16322,8 +16322,10 @@ inline STACK_OF(X509_NAME) *
|
|||||||
X509 *cert = nullptr;
|
X509 *cert = nullptr;
|
||||||
while ((cert = PEM_read_bio_X509(bio, nullptr, nullptr, nullptr)) !=
|
while ((cert = PEM_read_bio_X509(bio, nullptr, nullptr, nullptr)) !=
|
||||||
nullptr) {
|
nullptr) {
|
||||||
X509_NAME *name = X509_get_subject_name(cert);
|
const X509_NAME *name = X509_get_subject_name(cert);
|
||||||
if (name) { sk_X509_NAME_push(ca_list, X509_NAME_dup(name)); }
|
if (name) {
|
||||||
|
sk_X509_NAME_push(ca_list, X509_NAME_dup(const_cast<X509_NAME *>(name)));
|
||||||
|
}
|
||||||
X509_free(cert);
|
X509_free(cert);
|
||||||
}
|
}
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
|
|||||||
Reference in new issue
Block a user