diff options
author | Ben Toews <mastahyeti@gmail.com> | 2018-07-06 09:38:59 -0600 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-10-01 11:25:06 +1300 |
commit | 8ed5a079a446bfc60a9a6929e877bb4ac55808b8 (patch) | |
tree | 79f7966574ab76d26d986e3037839f1fdbc10812 /ext/openssl/openssl_missing.h | |
parent | a1c033e8d1cf4730c9e5ba5780b2f1ce43483001 (diff) | |
download | ruby-openssl-8ed5a079a446bfc60a9a6929e877bb4ac55808b8.tar.gz |
ts: fix for libressl
- define missing TS_RESP_CTX_set_time_cb
- handle alternate case for nil oid
Diffstat (limited to 'ext/openssl/openssl_missing.h')
-rw-r--r-- | ext/openssl/openssl_missing.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h index e713bf80..3cf999f3 100644 --- a/ext/openssl/openssl_missing.h +++ b/ext/openssl/openssl_missing.h @@ -247,4 +247,11 @@ IMPL_PKEY_GETTER(EC_KEY, ec) # define TS_VERIFY_CTX_add_flags(ctx, f) ((ctx)->flags |= (f)) #endif +#if !defined(HAVE_TS_RESP_CTX_SET_TIME_CB) +# define TS_RESP_CTX_set_time_cb(ctx, callback, dta) do { \ + (ctx)->time_cb = (callback); \ + (ctx)->time_cb_data = (dta); \ + } while (0) +#endif + #endif /* _OSSL_OPENSSL_MISSING_H_ */ |