mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
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
|
||||
/* Determine untrusted depth */
|
||||
if (!alreadySigner) {
|
||||
if (!alreadySigner && (!args->dCert ||
|
||||
!args->dCertInit || !args->dCert->selfSigned)) {
|
||||
args->untrustedDepth = 1;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user