mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #1666 from dgarske/fix_always_verify
Fix for building with `WOLFSSL_ALWAYS_VERIFY_CB`
This commit is contained in:
@ -9673,12 +9673,14 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
store->certs = args->certs;
|
store->certs = args->certs;
|
||||||
store->totalCerts = args->totalCerts;
|
store->totalCerts = args->totalCerts;
|
||||||
|
|
||||||
|
#if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER)
|
||||||
if (ssl->ctx->x509_store_pt != NULL) {
|
if (ssl->ctx->x509_store_pt != NULL) {
|
||||||
store->store = ssl->ctx->x509_store_pt;
|
store->store = ssl->ctx->x509_store_pt;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
store->store = &ssl->ctx->x509_store;
|
store->store = &ssl->ctx->x509_store;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef KEEP_PEER_CERT
|
#ifdef KEEP_PEER_CERT
|
||||||
if (ssl->peerCert.subject.sz > 0)
|
if (ssl->peerCert.subject.sz > 0)
|
||||||
store->current_cert = &ssl->peerCert;
|
store->current_cert = &ssl->peerCert;
|
||||||
|
Reference in New Issue
Block a user