Skip to content

Commit ef2e9e3

Browse files
codebytereTrott
authored andcommitted
crypto: use BoringSSL-compatible flag getter
PR-URL: #29604 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 4c40a64 commit ef2e9e3

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
@@ -4600,7 +4600,7 @@ bool Hash::HashInit(const char* hash_type, Maybe<unsigned int> xof_md_len) {
46004600
if (xof_md_len.IsJust() && xof_md_len.FromJust() != md_len_) {
46014601
// This is a little hack to cause createHash to fail when an incorrect
46024602
// hashSize option was passed for a non-XOF hash function.
4603-
if ((EVP_MD_meth_get_flags(md) & EVP_MD_FLAG_XOF) == 0) {
4603+
if ((EVP_MD_flags(md) & EVP_MD_FLAG_XOF) == 0) {
46044604
EVPerr(EVP_F_EVP_DIGESTFINALXOF, EVP_R_NOT_XOF_OR_INVALID_LENGTH);
46054605
return false;
46064606
}

0 commit comments

Comments
 (0)