/*
- * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2005 Nokia. All rights reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
}
}
#endif
- if (x->time != 0L) {
- if (BIO_printf(bp, "\n Start Time: %lld", (long long)x->time) <= 0)
+ if (!ossl_time_is_zero(x->time)) {
+ if (BIO_printf(bp, "\n Start Time: %lld",
+ (long long)ossl_time_to_time_t(x->time)) <= 0)
goto err;
}
- if (x->timeout != 0L) {
- if (BIO_printf(bp, "\n Timeout : %lld (sec)", (long long)x->timeout) <= 0)
+ if (!ossl_time_is_zero(x->timeout)) {
+ if (BIO_printf(bp, "\n Timeout : %lld (sec)",
+ (long long)ossl_time2seconds(x->timeout)) <= 0)
goto err;
}
if (BIO_puts(bp, "\n") <= 0)
if (istls13) {
if (BIO_printf(bp, " Max Early Data: %u\n",
- x->ext.max_early_data) <= 0)
+ (unsigned int)x->ext.max_early_data) <= 0)
goto err;
}