summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2021-09-04 16:03:49 +0100
committerKazuki Yamaguchi <k@rhe.jp>2021-10-16 18:34:35 +0900
commit6dcc74155f8b2951b7fed55cafae9cd27a73f090 (patch)
tree1e9ac44b18b2c7ba237f66d1688bbcfc91600e43 /ext/openssl
parentdaeb914a525dd7b9faf6ba9f4596deafa22b065a (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')
-rw-r--r--ext/openssl/ossl_ts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/ossl_ts.c b/ext/openssl/ossl_ts.c
index e2fd0fe06e7..5cf674caa80 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;