diff options
author | Hans Nilsson <[email protected]> | 2019-03-21 15:14:19 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-03-21 15:14:19 +0100 |
commit | e739ec80b5546e8d04f08c1f4a6c0067be2c13a7 (patch) | |
tree | 924e44691620e506c84f483e134706d046e97aaa /lib/crypto/c_src/algorithms.c | |
parent | c75fa5f4a484bc82083b06e7d10a197b2a3fbddc (diff) | |
parent | 7188527f1465c715c7e71e5477f4116f27202288 (diff) | |
download | otp-e739ec80b5546e8d04f08c1f4a6c0067be2c13a7.tar.gz otp-e739ec80b5546e8d04f08c1f4a6c0067be2c13a7.tar.bz2 otp-e739ec80b5546e8d04f08c1f4a6c0067be2c13a7.zip |
Merge branch 'hans/crypto/use_openssl_NO-flags/OTP-15683'
* hans/crypto/use_openssl_NO-flags/OTP-15683:
crypto: Fixup unused label warning
crypto: Fixup 'break strict-aliasing rules' warning
crypto: Fixup 'break strict-aliasing rules' warning
crypto: Fixup the ripemd160 macro chaos
crypto: Test suite fix for unavailable CMAC
crypto: Handle additional OPENSSL_NO_* flags
Diffstat (limited to 'lib/crypto/c_src/algorithms.c')
-rw-r--r-- | lib/crypto/c_src/algorithms.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/crypto/c_src/algorithms.c b/lib/crypto/c_src/algorithms.c index 06cd109fc1..1d45ed9df2 100644 --- a/lib/crypto/c_src/algorithms.c +++ b/lib/crypto/c_src/algorithms.c @@ -68,9 +68,15 @@ void init_algorithms_types(ErlNifEnv* env) // Non-validated algorithms follow algo_hash_fips_cnt = algo_hash_cnt; +#ifdef HAVE_MD4 algo_hash[algo_hash_cnt++] = enif_make_atom(env, "md4"); +#endif +#ifdef HAVE_MD5 algo_hash[algo_hash_cnt++] = enif_make_atom(env, "md5"); +#endif +#ifdef HAVE_RIPEMD160 algo_hash[algo_hash_cnt++] = enif_make_atom(env, "ripemd160"); +#endif algo_pubkey_cnt = 0; algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "rsa"); |