aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-11-21 12:16:57 +0100
committerHans Nilsson <[email protected]>2017-11-21 12:16:57 +0100
commit6817c0a02c1271d5c92a4fbceafaf71a0cb7e5e2 (patch)
tree3f10047bfb9d4659ae363d2f569c17b62782da66 /lib/crypto/src
parentf99f4c02676686935276f0df07c1eb6e2ae35fe7 (diff)
downloadotp-6817c0a02c1271d5c92a4fbceafaf71a0cb7e5e2.tar.gz
otp-6817c0a02c1271d5c92a4fbceafaf71a0cb7e5e2.tar.bz2
otp-6817c0a02c1271d5c92a4fbceafaf71a0cb7e5e2.zip
crypto: Fixes to make privkey_to_pubkey behave similar to other functions
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.