diff options
author | pvalchev <> | 2003-05-01 23:55:02 +0000 |
---|---|---|
committer | pvalchev <> | 2003-05-01 23:55:02 +0000 |
commit | b2ae0d53bd567739a3bcf2d0db1b522d3118cc56 (patch) | |
tree | 92e9f92735d25b5d7a9b9ddc51c3693c136571b1 | |
parent | 75a05b7a6dc69188fe7cedbf785f003fd2949f31 (diff) | |
download | openbsd-b2ae0d53bd567739a3bcf2d0db1b522d3118cc56.tar.gz openbsd-b2ae0d53bd567739a3bcf2d0db1b522d3118cc56.tar.bz2 openbsd-b2ae0d53bd567739a3bcf2d0db1b522d3118cc56.zip |
don't cast pointer to integer, use intptr_t stuff off inttypes.h instead
ok millert
-rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index 4f6379e160..342c59e659 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
@@ -122,6 +122,7 @@ | |||
122 | #include <stdlib.h> | 122 | #include <stdlib.h> |
123 | #include <string.h> | 123 | #include <string.h> |
124 | #include <time.h> | 124 | #include <time.h> |
125 | #include <inttypes.h> | ||
125 | 126 | ||
126 | #include "e_os.h" | 127 | #include "e_os.h" |
127 | 128 | ||
@@ -1474,8 +1475,8 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg) | |||
1474 | 1475 | ||
1475 | fprintf(stderr, "In app_verify_callback, allowing cert. "); | 1476 | fprintf(stderr, "In app_verify_callback, allowing cert. "); |
1476 | fprintf(stderr, "Arg is: %s\n", (char *)arg); | 1477 | fprintf(stderr, "Arg is: %s\n", (char *)arg); |
1477 | fprintf(stderr, "Finished printing do we have a context? 0x%x a cert? 0x%x\n", | 1478 | fprintf(stderr, "Finished printing do we have a context? 0x%lx a cert? 0x%lx\n", |
1478 | (unsigned int)ctx, (unsigned int)ctx->cert); | 1479 | (uintptr_t)ctx, (uintptr_t)ctx->cert); |
1479 | if (ctx->cert) | 1480 | if (ctx->cert) |
1480 | s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256); | 1481 | s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256); |
1481 | if (s != NULL) | 1482 | if (s != NULL) |