Skip to content

Commit

Permalink
libressl build fix warning TS_time_cb on libressl expects an long lon…
Browse files Browse the repository at this point in the history
…g/time_t 64 bits long instead.
  • Loading branch information
devnexen committed Sep 4, 2021
1 parent 74731d9 commit a82a37a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/openssl/ossl_ts.c
Expand Up @@ -1071,7 +1071,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 a82a37a

Please sign in to comment.