aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl
diff options
context:
space:
mode:
authorJxck <[email protected]>2017-12-11 16:27:01 +0900
committerIngela Anderton Andin <[email protected]>2017-12-19 17:23:59 +0100
commit0b75478c4acd6c22311f5f516ac5fcdca4a16b28 (patch)
treea9dfdef3eece3b10d6a66cb802c275e61738bd13 /lib/ssl
parent9cbab81f1a38f568fd0bf9738230ce2ebeab0191 (diff)
downloadotp-0b75478c4acd6c22311f5f516ac5fcdca4a16b28.tar.gz
otp-0b75478c4acd6c22311f5f516ac5fcdca4a16b28.tar.bz2
otp-0b75478c4acd6c22311f5f516ac5fcdca4a16b28.zip
remove duplicate operation for decode certificate
completely deprecated operation with no effect.
Diffstat (limited to 'lib/ssl')
-rw-r--r--lib/ssl/src/ssl_handshake.erl1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index fd437f62d2..5e687b1bb7 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -1034,7 +1034,6 @@ select_hashsign(HashSigns, Cert, KeyExAlgo,
select_hashsign(HashSigns, Cert, KeyExAlgo, tls_v1:default_signature_algs(Version), Version);
select_hashsign(#hash_sign_algos{hash_sign_algos = HashSigns}, Cert, KeyExAlgo, SupportedHashSigns,
{Major, Minor}) when Major >= 3 andalso Minor >= 3 ->
- #'OTPCertificate'{tbsCertificate = TBSCert} = public_key:pkix_decode_cert(Cert, otp),
#'OTPCertificate'{tbsCertificate = TBSCert,
signatureAlgorithm = {_,SignAlgo, _}} = public_key:pkix_decode_cert(Cert, otp),
#'OTPSubjectPublicKeyInfo'{algorithm = {_, SubjAlgo, _}} =