diff options
author | David Carlier <[email protected]> | 2021-09-04 16:03:49 +0100 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-10-16 18:34:35 +0900 |
commit | 6dcc74155f8b2951b7fed55cafae9cd27a73f090 (patch) | |
tree | 1e9ac44b18b2c7ba237f66d1688bbcfc91600e43 /ext/openssl/ossl_ts.c | |
parent | daeb914a525dd7b9faf6ba9f4596deafa22b065a (diff) |
[ruby/openssl] ts: libressl build fix warning
TS_time_cb on libressl expects an long long/time_t 64 bits long instead.
https://github.com/ruby/openssl/commit/4c99f577b2
Diffstat (limited to 'ext/openssl/ossl_ts.c')
-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 e2fd0fe06e..5cf674caa8 100644 --- a/ext/openssl/ossl_ts.c +++ b/ext/openssl/ossl_ts.c @@ -1077,7 +1077,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; |