From 99c2cd8f088f2659084b456d7847e97f82441efc Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 18 Sep 2019 12:38:24 -0700 Subject: [PATCH] crypto: use BoringSSL-compatible flag getter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/29604 Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: David Carlier Reviewed-By: Tobias Nießen --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 5761bd296e8097..346853365a2b94 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -4598,7 +4598,7 @@ bool Hash::HashInit(const char* hash_type, Maybe xof_md_len) { if (xof_md_len.IsJust() && xof_md_len.FromJust() != md_len_) { // This is a little hack to cause createHash to fail when an incorrect // hashSize option was passed for a non-XOF hash function. - if ((EVP_MD_meth_get_flags(md) & EVP_MD_FLAG_XOF) == 0) { + if ((EVP_MD_flags(md) & EVP_MD_FLAG_XOF) == 0) { EVPerr(EVP_F_EVP_DIGESTFINALXOF, EVP_R_NOT_XOF_OR_INVALID_LENGTH); return false; }