diff options
author | David Carlier <devnexen@gmail.com> | 2021-09-04 16:03:49 +0100 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-09-27 11:45:07 +0900 |
commit | 4c99f577b28559064b423a5a937fb6e09f8e9d99 (patch) | |
tree | 1970dd246deef3d7ea4f73e9836dc0248f597748 | |
parent | c12b77f79b77915b224c6bda81f8241b928a3b14 (diff) | |
download | ruby-openssl-4c99f577b28559064b423a5a937fb6e09f8e9d99.tar.gz |
ts: libressl build fix warning
TS_time_cb on libressl expects an long long/time_t 64 bits long instead.
-rw-r--r-- | ext/openssl/ossl_ts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/ossl_ts.c b/ext/openssl/ossl_ts.c index 160ec0d8..c90ed808 100644 --- a/ext/openssl/ossl_ts.c +++ b/ext/openssl/ossl_ts.c @@ -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; |