aboutsummaryrefslogtreecommitdiff
path: root/pow
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-08-20 00:02:10 +0000
committerRob Austein <sra@hactrn.net>2009-08-20 00:02:10 +0000
commit6426bed3bd724b958822c6d11a333ccb43c44e71 (patch)
tree354f9eb258707c4529935f75300ac7255500f996 /pow
parent73e071ba6eed1d9f595cb639b038f357cae7db82 (diff)
ctx->current_issuer appears to be set to garbage when
ssl_object_verify_callback() is invoked, so don't log the garbage. svn path=/pow/POW-0.7/POW.c; revision=2692
Diffstat (limited to 'pow')
-rw-r--r--pow/POW-0.7/POW.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pow/POW-0.7/POW.c b/pow/POW-0.7/POW.c
index 80ce4601..6b45398b 100644
--- a/pow/POW-0.7/POW.c
+++ b/pow/POW-0.7/POW.c
@@ -4796,7 +4796,7 @@ static int ssl_object_verify_callback(X509_STORE_CTX *ctx, void *arg)
}
BIO_printf(b,
- "\nX509_verify_cert() error: callback depth %d error %d cert %p issuer %p crl %p: %s\n",
+ "\nX509_verify_cert() error: error depth %d error %d current_cert %p current_issuer %p current_crl %p: %s\n",
ctx->error_depth,
ctx->error,
ctx->current_cert,
@@ -4805,11 +4805,14 @@ static int ssl_object_verify_callback(X509_STORE_CTX *ctx, void *arg)
X509_verify_cert_error_string(ctx->error));
if (ctx->current_cert)
X509_print(b, ctx->current_cert);
+
+#if 0
+ /* This seems to be returning garbage, don't know why */
if (ctx->current_issuer)
X509_print(b, ctx->current_issuer);
+#endif
- if ((len = BIO_ctrl_pending(b)) == 0 ||
- (buf = malloc(len)) == NULL)
+ if ((len = BIO_ctrl_pending(b)) == 0 || (buf = malloc(len)) == NULL)
goto fail;
if (BIO_read(b, buf, len) == len)