mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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
This commit is contained in:
parent
daeb914a52
commit
6dcc74155f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue