SSL_CTX_set_verify_depth
void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
SSL_CTX_set_verify_depth(ssl_ctx, ctx->config->verify_depth);