aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/algorithms.c
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-04-08 14:33:12 +0200
committerHans Nilsson <[email protected]>2019-04-10 10:38:10 +0200
commit39e7ecc0b3c5cbe529093f126189eadbf83d3a80 (patch)
tree88b0d95bde8a633c6fbb57b7dcc3f2f4a6faee6a /lib/crypto/c_src/algorithms.c
parentf088a25bebcb74668dac21dc3b686fc2bea4502e (diff)
downloadotp-39e7ecc0b3c5cbe529093f126189eadbf83d3a80.tar.gz
otp-39e7ecc0b3c5cbe529093f126189eadbf83d3a80.tar.bz2
otp-39e7ecc0b3c5cbe529093f126189eadbf83d3a80.zip
crypto: Obey compile flags for no DSA, BF, DES, DH
Diffstat (limited to 'lib/crypto/c_src/algorithms.c')
-rw-r--r--lib/crypto/c_src/algorithms.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/c_src/algorithms.c b/lib/crypto/c_src/algorithms.c
index 1d45ed9df2..20707c0531 100644
--- a/lib/crypto/c_src/algorithms.c
+++ b/lib/crypto/c_src/algorithms.c
@@ -80,8 +80,12 @@ void init_algorithms_types(ErlNifEnv* env)
algo_pubkey_cnt = 0;
algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "rsa");
+#ifdef HAVE_DSA
algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "dss");
+#endif
+#ifdef HAVE_DH
algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "dh");
+#endif
#if defined(HAVE_EC)
#if !defined(OPENSSL_NO_EC2M)
algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "ec_gf2m");