diff options
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 } |