diff options
author | Sverker Eriksson <[email protected]> | 2013-04-22 21:43:44 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-05-08 10:39:19 +0200 |
commit | 3155ca5b47149a214b101f6c0b84cdcd0400a30b (patch) | |
tree | 95af72e673487f3a7726e9bd987e9013e203be46 /lib/ssl/test | |
parent | f5902d53588784d95674e07055fc2ef0d6fd0ed0 (diff) | |
download | otp-3155ca5b47149a214b101f6c0b84cdcd0400a30b.tar.gz otp-3155ca5b47149a214b101f6c0b84cdcd0400a30b.tar.bz2 otp-3155ca5b47149a214b101f6c0b84cdcd0400a30b.zip |
crypto, public_key & ssl: Change API to hide resource format for EC KEY
Diffstat (limited to 'lib/ssl/test')
-rw-r--r-- | lib/ssl/test/erl_make_certs.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ssl/test/erl_make_certs.erl b/lib/ssl/test/erl_make_certs.erl index f8d086513b..c0cf5005ed 100644 --- a/lib/ssl/test/erl_make_certs.erl +++ b/lib/ssl/test/erl_make_certs.erl @@ -409,9 +409,7 @@ int2list(I) -> binary_to_list(<<I:(L*8)>>). gen_ec2(CurveId) -> - Key = crypto:ec_key_new(CurveId), - crypto:ec_key_generate(Key), - {_Curve, PrivKey, PubKey} = crypto:ec_key_to_term(Key), + {_Curve, PrivKey, PubKey} = crypto:ecdh_generate_key(CurveId), #'ECPrivateKey'{version = 1, privateKey = int2list(PrivKey), |