Skip to content

Commit

Permalink
ts: libressl build fix warning
Browse files Browse the repository at this point in the history
TS_time_cb on libressl expects an long long/time_t 64 bits long instead.
  • Loading branch information
devnexen authored and rhenium committed Sep 27, 2021
1 parent c12b77f commit 4c99f57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/openssl/ossl_ts.c
Expand Up @@ -1074,7 +1074,11 @@ ossl_tsfac_serial_cb(struct TS_resp_ctx *ctx, void *data)
}

static int
#if !defined(LIBRESSL_VERSION_NUMBER)
ossl_tsfac_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec)
#else
ossl_tsfac_time_cb(struct TS_resp_ctx *ctx, void *data, time_t *sec, long *usec)
#endif
{
*sec = *((long *)data);
*usec = 0;
Expand Down

0 comments on commit 4c99f57

Please sign in to comment.