diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2001-07-31 10:20:53 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2001-07-31 10:20:53 +0000 |
commit | dd186f600dff9b1d8eeb054e28d96060137a8c97 (patch) | |
tree | 03e1deebf2ce80e119d979705918b758c32da70d | |
parent | 01fc70323fe8c7541906fb512f895d3b27f89aef (diff) |
Only set the verify callback if there's one to set!
-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 38c76a9d13..be3acabf3e 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -461,7 +461,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 */ |