diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2021-09-27 12:00:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 12:00:46 +0900 |
commit | 52c4d987c381fdbb6478af70cf881adaa9d08e2a (patch) | |
tree | 1970dd246deef3d7ea4f73e9836dc0248f597748 | |
parent | c12b77f79b77915b224c6bda81f8241b928a3b14 (diff) | |
parent | 4c99f577b28559064b423a5a937fb6e09f8e9d99 (diff) | |
download | ruby-openssl-52c4d987c381fdbb6478af70cf881adaa9d08e2a.tar.gz |
Merge pull request #454 from devnexen/libressl_fix
libressl build fix warning TS_time_cb on libressl expects an long lon…
-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; |