Only set the verify callback if there's one to set!

This commit is contained in:
Ben Laurie 2001-07-30 17:17:26 +00:00
parent ed0015284b
commit be2e2c3297

View File

@ -471,6 +471,7 @@ int ssl_verify_cert_chain(SSL *s,STACK_OF(X509) *sk)
X509_STORE_CTX_purpose_inherit(&ctx, i, s->purpose, s->trust);
if(s->verify_callback)
X509_STORE_CTX_set_verify_cb(&ctx, s->verify_callback);
if (s->ctx->app_verify_callback != NULL)