summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2022-03-17 00:21:58 +0100
committerTomas Mraz <tomas@openssl.org>2022-03-18 12:49:09 +0100
commit9362638b080e328ccab43f89048bed27bcf2f11d (patch)
treefef3d334445fbfc1df887060a7cbbd7c8582facc
parenteng_dyn: Avoid spurious errors when checking for 1.1.x engine (diff)
downloadopenssl-9362638b080e328ccab43f89048bed27bcf2f11d.tar.xz
openssl-9362638b080e328ccab43f89048bed27bcf2f11d.zip
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)
-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)