Avoid using functions deprecated in OpenSSL 3.0 (#515)

This commit is contained in:
Cameron Gutman
2022-12-15 20:21:57 -06:00
committed by GitHub
parent a54830cf39
commit f4edce318c
2 changed files with 7 additions and 15 deletions

View File

@@ -30,6 +30,7 @@ using cipher_ctx_t = util::safe_ptr<EVP_CIPHER_CTX, EVP_CIPHER_CTX_free>;
using md_ctx_t = util::safe_ptr<EVP_MD_CTX, md_ctx_destroy>;
using bio_t = util::safe_ptr<BIO, BIO_free_all>;
using pkey_t = util::safe_ptr<EVP_PKEY, EVP_PKEY_free>;
using pkey_ctx_t = util::safe_ptr<EVP_PKEY_CTX, EVP_PKEY_CTX_free>;
sha256_t hash(const std::string_view &plaintext);