summaryrefslogtreecommitdiff
path: root/ssl/ssl_txt.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2022-03-16 23:21:58 +0000
committerTomas Mraz <tomas@openssl.org>2022-03-18 12:49:09 +0100
commit9362638b080e328ccab43f89048bed27bcf2f11d (patch)
treefef3d334445fbfc1df887060a7cbbd7c8582facc /ssl/ssl_txt.c
parentbd5c91c82cdc4b6ffe4a2970f9512fc5ec7d2d06 (diff)
downloadopenssl-new-9362638b080e328ccab43f89048bed27bcf2f11d.tar.gz
print SSL session, fix build warnings on OpenBSD.
time_t is a 64 bits type on this platform. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17917)
Diffstat (limited to 'ssl/ssl_txt.c')
-rw-r--r--ssl/ssl_txt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c
index 6abee5da41..bd92553955 100644
--- a/ssl/ssl_txt.c
+++ b/ssl/ssl_txt.c
@@ -129,11 +129,11 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
}
#endif
if (x->time != 0L) {
- if (BIO_printf(bp, "\n Start Time: %ld", x->time) <= 0)
+ if (BIO_printf(bp, "\n Start Time: %lld", (long long)x->time) <= 0)
goto err;
}
if (x->timeout != 0L) {
- if (BIO_printf(bp, "\n Timeout : %ld (sec)", x->timeout) <= 0)
+ if (BIO_printf(bp, "\n Timeout : %lld (sec)", (long long)x->timeout) <= 0)
goto err;
}
if (BIO_puts(bp, "\n") <= 0)