aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/hash.c
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-20 09:45:47 +0100
committerHans Nilsson <[email protected]>2019-03-21 14:46:30 +0100
commit59cfe1d4902cbbdae76b12367ac80df8a96a9983 (patch)
tree7ae42b4a04f72f01733114efebe3636cfb009c96 /lib/crypto/c_src/hash.c
parentb9a3cdd55a42c3f20798a0dbdea620cfa47cc68e (diff)
downloadotp-59cfe1d4902cbbdae76b12367ac80df8a96a9983.tar.gz
otp-59cfe1d4902cbbdae76b12367ac80df8a96a9983.tar.bz2
otp-59cfe1d4902cbbdae76b12367ac80df8a96a9983.zip
crypto: Fixup the ripemd160 macro chaos
Diffstat (limited to 'lib/crypto/c_src/hash.c')
-rw-r--r--lib/crypto/c_src/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/hash.c b/lib/crypto/c_src/hash.c
index 329b9b64e5..9b79258585 100644
--- a/lib/crypto/c_src/hash.c
+++ b/lib/crypto/c_src/hash.c
@@ -478,7 +478,7 @@ ERL_NIF_TERM hash_final_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
ctx_final = (final_fun)(&MD5_Final);
break;
#endif
-#ifdef HAVE_MD5
+#ifdef HAVE_RIPEMD160
case NID_ripemd160:
ctx_size = RIPEMD160_CTX_LEN;
ctx_final = (final_fun)(&RIPEMD160_Final);