Skip to content

Commit

Permalink
Merge pull request #454 from devnexen/libressl_fix
Browse files Browse the repository at this point in the history
libressl build fix warning TS_time_cb on libressl expects an long lon…
  • Loading branch information
rhenium authored Sep 27, 2021
2 parents c12b77f + 4c99f57 commit 52c4d98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/openssl/ossl_ts.c
Original file line number Diff line number Diff line change
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 52c4d98

Please sign in to comment.