diff options
author | Tor Egge <Tor.Egge@online.no> | 2021-10-28 16:30:44 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2021-10-28 16:36:57 +0200 |
commit | 0545e8185cae59cee21c161e07aad88755ea1f28 (patch) | |
tree | b38271c214ada46cd37cfb5f1817460f248f937e /vespalib | |
parent | 0b3e5ffe02fa2b51ffe37bc5f1e82022c3eeb672 (diff) |
Avoid deprecated functions in OpenSSL 3.0.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/crypto/openssl_typedefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/crypto/openssl_typedefs.h b/vespalib/src/vespa/vespalib/crypto/openssl_typedefs.h index 036d938c158..5ec00d3783d 100644 --- a/vespalib/src/vespa/vespalib/crypto/openssl_typedefs.h +++ b/vespalib/src/vespa/vespalib/crypto/openssl_typedefs.h @@ -43,11 +43,13 @@ struct EvpPkeyDeleter { }; using EvpPkeyPtr = std::unique_ptr<::EVP_PKEY, EvpPkeyDeleter>; +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) struct EcKeyDeleter { void operator()(::EC_KEY* ec_key) const noexcept { ::EC_KEY_free(ec_key); } }; using EcKeyPtr = std::unique_ptr<::EC_KEY, EcKeyDeleter>; +#endif } |