projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed00152
)
Only set the verify callback if there's one to set!
author
Ben Laurie
<ben@openssl.org>
Mon, 30 Jul 2001 17:17:26 +0000
(17:17 +0000)
committer
Ben Laurie
<ben@openssl.org>
Mon, 30 Jul 2001 17:17:26 +0000
(17:17 +0000)
ssl/ssl_cert.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_cert.c
b/ssl/ssl_cert.c
index 8a53b9fa4b750fb9bf416c22b7f535da7ac27d3a..26da280cadc9dd821be5ae9b13fb4225eebc294c 100644
(file)
--- 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 */