aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-11-22 11:58:34 +0100
committerHans Nilsson <[email protected]>2017-11-22 11:58:34 +0100
commit9198b5075e25250c15145b942a9d0c4ea023896e (patch)
tree6cb6ec15a612ba871d5e16a5dc8564c08e47f3e7 /lib/crypto/src
parent7ac552d858a3c611052d6b109314feb509d6cc01 (diff)
parenta41bfcdf524dd94a9a760ab3dd0d375896e5a7f7 (diff)
downloadotp-9198b5075e25250c15145b942a9d0c4ea023896e.tar.gz
otp-9198b5075e25250c15145b942a9d0c4ea023896e.tar.bz2
otp-9198b5075e25250c15145b942a9d0c4ea023896e.zip
Merge branch '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 9ba1623348..91e154280f 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -1100,7 +1100,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.