Skip to content

Commit 4c99f57

Browse files
devnexenrhenium
authored andcommitted
ts: libressl build fix warning
TS_time_cb on libressl expects an long long/time_t 64 bits long instead.
1 parent c12b77f commit 4c99f57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/openssl/ossl_ts.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,11 @@ ossl_tsfac_serial_cb(struct TS_resp_ctx *ctx, void *data)
10741074
}
10751075

10761076
static int
1077+
#if !defined(LIBRESSL_VERSION_NUMBER)
10771078
ossl_tsfac_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec)
1079+
#else
1080+
ossl_tsfac_time_cb(struct TS_resp_ctx *ctx, void *data, time_t *sec, long *usec)
1081+
#endif
10781082
{
10791083
*sec = *((long *)data);
10801084
*usec = 0;

0 commit comments

Comments
 (0)