summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2003-05-01 23:55:03 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2003-05-01 23:55:03 +0000
commita18da8558f436cdb8a6dc56fec9ea06488456477 (patch)
treee8fbe272011e5f190881969b076cb88d062c4b40 /lib
parent13e29c0a4276aa087f4573044c22d326a56f2d39 (diff)
don't cast pointer to integer, use intptr_t stuff off inttypes.h instead
ok millert
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/ssl/ssltest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/ssltest.c b/lib/libssl/src/ssl/ssltest.c
index 4f6379e1602..342c59e6590 100644
--- a/lib/libssl/src/ssl/ssltest.c
+++ b/lib/libssl/src/ssl/ssltest.c
@@ -122,6 +122,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <inttypes.h>
#include "e_os.h"
@@ -1474,8 +1475,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", (char *)arg);
- 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%lx a cert? 0x%lx\n",
+ (uintptr_t)ctx, (uintptr_t)ctx->cert);
if (ctx->cert)
s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256);
if (s != NULL)