Skip to content

Commit 99c2cd8

Browse files
codebytereBridgeAR
authored andcommitted
crypto: use BoringSSL-compatible flag getter
PR-URL: #29604 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 3ba6464 commit 99c2cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4598,7 +4598,7 @@ bool Hash::HashInit(const char* hash_type, Maybe<unsigned int> xof_md_len) {
45984598
if (xof_md_len.IsJust() && xof_md_len.FromJust() != md_len_) {
45994599
// This is a little hack to cause createHash to fail when an incorrect
46004600
// hashSize option was passed for a non-XOF hash function.
4601-
if ((EVP_MD_meth_get_flags(md) & EVP_MD_FLAG_XOF) == 0) {
4601+
if ((EVP_MD_flags(md) & EVP_MD_FLAG_XOF) == 0) {
46024602
EVPerr(EVP_F_EVP_DIGESTFINALXOF, EVP_R_NOT_XOF_OR_INVALID_LENGTH);
46034603
return false;
46044604
}

0 commit comments

Comments
 (0)