forked from wolfSSL/wolfssl
Keep untrustedDepth = 0 for self signed certs
This commit is contained in:
@ -10151,7 +10151,8 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
|
|
||||||
#ifdef OPENSSL_EXTRA
|
#ifdef OPENSSL_EXTRA
|
||||||
/* Determine untrusted depth */
|
/* Determine untrusted depth */
|
||||||
if (!alreadySigner) {
|
if (!alreadySigner && (!args->dCert ||
|
||||||
|
!args->dCertInit || !args->dCert->selfSigned)) {
|
||||||
args->untrustedDepth = 1;
|
args->untrustedDepth = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user