diff options
author | Ben Laurie <ben@openssl.org> | 2001-07-30 17:17:26 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-07-30 17:17:26 +0000 |
commit | be2e2c32972e421ecc78bb79b502cb9d76d0c391 (patch) | |
tree | 4b9dc3b32d5fc0d4bbfe93692fba84185873497d /ssl/ssl_cert.c | |
parent | ed0015284b59950de93527e09f2d6757fcace961 (diff) |
Only set the verify callback if there's one to set!
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 8a53b9fa4b..26da280cad 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -471,7 +471,8 @@ int ssl_verify_cert_chain(SSL *s,STACK_OF(X509) *sk) X509_STORE_CTX_purpose_inherit(&ctx, i, s->purpose, s->trust); - X509_STORE_CTX_set_verify_cb(&ctx, s->verify_callback); + if(s->verify_callback) + X509_STORE_CTX_set_verify_cb(&ctx, s->verify_callback); if (s->ctx->app_verify_callback != NULL) i=s->ctx->app_verify_callback(&ctx); /* should pass app_verify_arg */ |