diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-05-30 21:26:46 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-05-30 21:26:46 -0700 |
commit | 057691e2bd3a2af4654d793bad78db3b991c9e19 (patch) | |
tree | 62808d5f2054e91290dc1a5688feb034df6c8dc1 /ext/openssl/openssl_missing.h | |
parent | a368d7d1ad18232edb9c26f24d9e2d17f03c3f97 (diff) | |
download | ruby-openssl-057691e2bd3a2af4654d793bad78db3b991c9e19.tar.gz |
Treat LibreSSL 2.7+ like OpenSSL 1.1 in terms of opaqueness
LibreSSL does not define HAVE_OPAQUE_OPENSSL, but operates
similarly.
See:
https://github.com/openbsd/ports/commit/24f62d13dcefff26ade5088b7cdd9238a805450d
https://github.com/openbsd/ports/commit/c8307509d3638d5e5e6c1b7be411f4cdeba0e113
Diffstat (limited to 'ext/openssl/openssl_missing.h')
-rw-r--r-- | ext/openssl/openssl_missing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h index f81c64e8..645e90a0 100644 --- a/ext/openssl/openssl_missing.h +++ b/ext/openssl/openssl_missing.h @@ -148,6 +148,7 @@ void ossl_X509_REQ_get0_signature(const X509_REQ *, const ASN1_BIT_STRING **, co #endif #if !defined(HAVE_OPAQUE_OPENSSL) +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL #define IMPL_PKEY_GETTER(_type, _name) \ static inline _type *EVP_PKEY_get0_##_type(EVP_PKEY *pkey) { \ return pkey->pkey._name; } @@ -199,6 +200,7 @@ IMPL_PKEY_GETTER(EC_KEY, ec) #undef IMPL_PKEY_GETTER #undef IMPL_KEY_ACCESSOR2 #undef IMPL_KEY_ACCESSOR3 +#endif #endif /* HAVE_OPAQUE_OPENSSL */ #if !defined(EVP_CTRL_AEAD_GET_TAG) |