mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Fix to only AddCA when its CA type and veryNone is not set.
This commit is contained in:
@ -10053,7 +10053,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
||||
ret = DoVerifyCallback(ssl, ret, args);
|
||||
|
||||
/* If valid CA then add to Certificate Manager */
|
||||
if (ret == 0) {
|
||||
if (ret == 0 && args->dCert->isCA && !ssl->options.verifyNone) {
|
||||
buffer* cert = &args->certs[args->certIdx];
|
||||
|
||||
/* Is valid CA */
|
||||
|
Reference in New Issue
Block a user