X509_VERIFY_MAX_CHAIN_CERTS
ctx->max_depth = X509_VERIFY_MAX_CHAIN_CERTS;
if (max < 1 || max > X509_VERIFY_MAX_CHAIN_CERTS)
if ((chain->cert_errors = calloc(X509_VERIFY_MAX_CHAIN_CERTS,
if ((new_chain->cert_errors = calloc(X509_VERIFY_MAX_CHAIN_CERTS,
X509_VERIFY_MAX_CHAIN_CERTS * sizeof(int));
ctx->xsc->error_depth >= X509_VERIFY_MAX_CHAIN_CERTS)
max_depth = X509_VERIFY_MAX_CHAIN_CERTS;
if (xsc->param->depth > 0 && xsc->param->depth < X509_VERIFY_MAX_CHAIN_CERTS)