use 'p' as conversion specifier for printf to avoid truncation of
authorNils Larsch <nils@openssl.org>
Tue, 10 May 2005 11:55:28 +0000 (11:55 +0000)
committerNils Larsch <nils@openssl.org>
Tue, 10 May 2005 11:55:28 +0000 (11:55 +0000)
pointers on 64 bit platforms. Patch supplied by Daniel Gryniewicz
via Mike Frysinger <vapier@gentoo.org>.

PR: 1064

ssl/ssltest.c

index d56f642869f20fb94e6e74b1e2608e4f0a79cbd7..bbfbfc9b38b9711ef3a8cab4ef23ffc290f1f6f8 100644 (file)
@@ -1986,8 +1986,8 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg)
 
                fprintf(stderr, "In app_verify_callback, allowing cert. ");
                fprintf(stderr, "Arg is: %s\n", cb_arg->string);
 
                fprintf(stderr, "In app_verify_callback, allowing cert. ");
                fprintf(stderr, "Arg is: %s\n", cb_arg->string);
-               fprintf(stderr, "Finished printing do we have a context? 0x%x a cert? 0x%x\n",
-                       (unsigned int)ctx, (unsigned int)ctx->cert);
+               fprintf(stderr, "Finished printing do we have a context? 0x%p a cert? 0x%p\n",
+                       ctx, ctx->cert);
                if (ctx->cert)
                        s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256);
                if (s != NULL)
                if (ctx->cert)
                        s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256);
                if (s != NULL)