diff options
author | Hans Nilsson <[email protected]> | 2019-04-16 12:27:15 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-04-17 16:35:20 +0200 |
commit | c500d66b68ff0fe174128926318f3eead4dcbb15 (patch) | |
tree | 19578100cefe6fb9208186b36ea9215812c58cd5 /lib/crypto/c_src/crypto.c | |
parent | 2587405769912b165b4c97d827411db09d7a7882 (diff) | |
download | otp-c500d66b68ff0fe174128926318f3eead4dcbb15.tar.gz otp-c500d66b68ff0fe174128926318f3eead4dcbb15.tar.bz2 otp-c500d66b68ff0fe174128926318f3eead4dcbb15.zip |
crypto: New function supports/1
Takes argument hashs, public_keys, ciphers, macs, curves or rsa_opts. Returns the algorithm names, but ONLY the openssl names. supports/0 still returns aliases and misspellings.
Diffstat (limited to 'lib/crypto/c_src/crypto.c')
-rw-r--r-- | lib/crypto/c_src/crypto.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c index a8014745c8..d533cba140 100644 --- a/lib/crypto/c_src/crypto.c +++ b/lib/crypto/c_src/crypto.c @@ -63,7 +63,12 @@ static ErlNifFunc nif_funcs[] = { {"info_lib", 0, info_lib, 0}, {"info_fips", 0, info_fips, 0}, {"enable_fips_mode", 1, enable_fips_mode, 0}, - {"algorithms", 0, algorithms, 0}, + {"hash_algorithms", 0, hash_algorithms, 0}, + {"pubkey_algorithms", 0, pubkey_algorithms, 0}, + {"cipher_algorithms", 0, cipher_algorithms, 0}, + {"mac_algorithms", 0, mac_algorithms, 0}, + {"curve_algorithms", 0, curve_algorithms, 0}, + {"rsa_opts_algorithms", 0, rsa_opts_algorithms, 0}, {"hash_info", 1, hash_info_nif, 0}, {"hash_nif", 2, hash_nif, 0}, {"hash_init_nif", 1, hash_init_nif, 0}, |