summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2019-09-18 12:38:24 -0700
committerRich Trott <rtrott@gmail.com>2019-09-22 13:05:12 -0700
commitef2e9e359c6dcc512beb7fe0356e05df907dd855 (patch)
tree26729260548bd4f8409a22fbde0c4d39cefe0c53 /src
parent4c40a640eaf2882b41279ec606676b020ac571a9 (diff)
downloadandroid-node-v8-ef2e9e359c6dcc512beb7fe0356e05df907dd855.tar.gz
android-node-v8-ef2e9e359c6dcc512beb7fe0356e05df907dd855.tar.bz2
android-node-v8-ef2e9e359c6dcc512beb7fe0356e05df907dd855.zip
crypto: use BoringSSL-compatible flag getter
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src')
-rw-r--r--src/node_crypto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 9939123f9f..edf70d0cd7 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -4600,7 +4600,7 @@ bool Hash::HashInit(const char* hash_type, Maybe<unsigned int> 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;
}