forked from wolfSSL/wolfssl
added more context
This commit is contained in:
@@ -12397,7 +12397,11 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
||||||
/* limit compliant with OpenSSL verify Depth + 1 */
|
/* limit compliant with OpenSSL verify Depth + 1
|
||||||
|
* OpenSSL tries to expand the chain one longer than limit until
|
||||||
|
* reaching an ultimately trusted issuer. Becoming failure if
|
||||||
|
* we hit the limit, with X509_V_ERR_CERT_CHAIN_TOO_LONG
|
||||||
|
*/
|
||||||
if (args->untrustedDepth > (ssl->options.verifyDepth + 1)) {
|
if (args->untrustedDepth > (ssl->options.verifyDepth + 1)) {
|
||||||
ssl->peerVerifyRet = X509_V_ERR_CERT_CHAIN_TOO_LONG;
|
ssl->peerVerifyRet = X509_V_ERR_CERT_CHAIN_TOO_LONG;
|
||||||
ret = MAX_CHAIN_ERROR;
|
ret = MAX_CHAIN_ERROR;
|
||||||
|
Reference in New Issue
Block a user