summaryrefslogtreecommitdiffstats
path: root/ssl
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:56 +0100
commit0d9f48d079cbbe85c684c2215955c2a70b2d1c6b (patch)
tree6b4a7c72165fcd56912c11b71eb0f673784c580a /ssl
parentd6bf4a2218aeb246ba7d34f02e895c37569c8265 (diff)
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) (cherry picked from commit 9362638b080e328ccab43f89048bed27bcf2f11d)
Diffstat (limited to 'ssl')
-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 457bc8b3c2..eb5d01e3a3 100644
--- a/ssl/ssl_txt.c
+++ b/ssl/ssl_txt.c
@@ -130,11 +130,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)