Merge pull request #1666 from dgarske/fix_always_verify

Fix for building with `WOLFSSL_ALWAYS_VERIFY_CB`
This commit is contained in:
toddouska
2018-07-09 11:13:28 -07:00
committed by GitHub

View File

@ -9673,12 +9673,14 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
store->certs = args->certs;
store->totalCerts = args->totalCerts;
#if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER)
if (ssl->ctx->x509_store_pt != NULL) {
store->store = ssl->ctx->x509_store_pt;
}
else {
store->store = &ssl->ctx->x509_store;
}
#endif
#ifdef KEEP_PEER_CERT
if (ssl->peerCert.subject.sz > 0)
store->current_cert = &ssl->peerCert;