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:37 +0100
commitad6cf7d3c11ea4ce47fd76c1defb2607cc7ea579 (patch)
treeb4b46541f7b4abb62bbd52d014f9f2296898257b /ssl
parenteecc12b7e0beadab92052d242e89ee259a48d65b (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 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)