diff options
author | Ingela Anderton Andin <[email protected]> | 2013-11-04 16:41:03 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-12-02 09:50:03 +0100 |
commit | 95db85ba3581b9b8722239fb1accc8a4a2d6c2e5 (patch) | |
tree | 15382f381eb4250fb97c36764979c73d5fad4fe7 /lib/ssl/src/ssl_connection.erl | |
parent | f606903e2b714721b57d1d73a17d31b02f85ef07 (diff) | |
download | otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.tar.gz otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.tar.bz2 otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.zip |
ssl, public_key: Dialyzer fixes
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r-- | lib/ssl/src/ssl_connection.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index 7e43af08e5..2f5890ed31 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -917,13 +917,15 @@ calculate_secret(#server_dh_params{dh_p = Prime, dh_g = Base, dh_y = ServerPubli Keys = {_, PrivateDhKey} = crypto:generate_key(dh, [Prime, Base]), PremasterSecret = ssl_handshake:premaster_secret(ServerPublicDhKey, PrivateDhKey, Params), - calculate_master_secret(PremasterSecret, State#state{diffie_hellman_keys = Keys}, Connection, certify, certify); + calculate_master_secret(PremasterSecret, + State#state{diffie_hellman_keys = Keys}, Connection, certify, certify); calculate_secret(#server_ecdh_params{curve = ECCurve, public = ECServerPubKey}, State, Connection) -> ECDHKeys = public_key:generate_key(ECCurve), PremasterSecret = ssl_handshake:premaster_secret(#'ECPoint'{point = ECServerPubKey}, ECDHKeys), - calculate_master_secret(PremasterSecret, State#state{diffie_hellman_keys = ECDHKeys}, Connection, certify, certify); + calculate_master_secret(PremasterSecret, + State#state{diffie_hellman_keys = ECDHKeys}, Connection, certify, certify); calculate_secret(#server_psk_params{ hint = IdentityHint}, |