aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-11-22 11:55:04 +0100
committerHans Nilsson <[email protected]>2017-11-22 11:55:04 +0100
commita41bfcdf524dd94a9a760ab3dd0d375896e5a7f7 (patch)
treeabefeeb67dd14084fa0c2d0fc3a8442668f51192 /lib/crypto/src
parent43c5b9621e4c7054378e9ff96907cca4fd92ecc7 (diff)
parent6817c0a02c1271d5c92a4fbceafaf71a0cb7e5e2 (diff)
downloadotp-a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7.tar.gz
otp-a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7.tar.bz2
otp-a41bfcdf524dd94a9a760ab3dd0d375896e5a7f7.zip
Merge branch 'hans/crypto/cuddle_tests' into maint
Diffstat (limited to 'lib/crypto/src')
-rw-r--r--lib/crypto/src/crypto.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 0d39dcc76e..8e3d41c1e9 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -1061,7 +1061,7 @@ ec_curve(X) ->
privkey_to_pubkey(Alg, EngineMap) when Alg == rsa; Alg == dss; Alg == ecdsa ->
- case privkey_to_pubkey_nif(Alg, format_pkey(Alg,EngineMap)) of
+ case notsup_to_error(privkey_to_pubkey_nif(Alg, format_pkey(Alg,EngineMap))) of
[_|_]=L -> map_ensure_bin_as_int(L);
X -> X
end.