Skip to content

Commit 52c4d98

Browse files
authored
Merge pull request #454 from devnexen/libressl_fix
libressl build fix warning TS_time_cb on libressl expects an long lon…
2 parents c12b77f + 4c99f57 commit 52c4d98

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)