mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
On OpenSSL 3, migrate from EVP_get_digestbyname() to EVP_MD_fetch() to get the implementation and use a per-Environment cache for it. The EVP_MDs are freed during Environment cleanup. Drive-by: declare the smart pointer for EVP_MD_CTX as EVPMDCtxPointer instead of EVPMDPointer to avoid confusion with EVP_MD pointers. PR-URL: https://github.com/nodejs/node/pull/51034 Refs: https://www.openssl.org/docs/man3.0/man7/crypto.html#Explicit-fetching Refs: https://github.com/nodejs/performance/issues/136 Reviewed-By: James M Snell <jasnell@gmail.com>