diff options
author | lloyd <[email protected]> | 2012-01-20 19:06:53 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-20 19:06:53 +0000 |
commit | 02077f7aa78bad9afd78e83b503bd3e2ad9383ea (patch) | |
tree | 8a94c9f66e4c0f2d5a99e11ff07e6eff71c4a47b /src/tls/tls_extensions.cpp | |
parent | 415efed94cb5b185ae31140285a6a5e2fef64765 (diff) |
Strangely you can negotiate using only MD5 in TLS 1.2. Just ignore it
entirely if we see it.
Diffstat (limited to 'src/tls/tls_extensions.cpp')
-rw-r--r-- | src/tls/tls_extensions.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tls/tls_extensions.cpp b/src/tls/tls_extensions.cpp index 4fbcdbad1..ecb01481a 100644 --- a/src/tls/tls_extensions.cpp +++ b/src/tls/tls_extensions.cpp @@ -280,8 +280,8 @@ std::string Signature_Algorithms::hash_algo_name(byte code) { switch(code) { - case 1: - return "MD5"; + // code 1 is MD5 - ignore it + case 2: return "SHA-1"; case 3: @@ -299,9 +299,6 @@ std::string Signature_Algorithms::hash_algo_name(byte code) byte Signature_Algorithms::hash_algo_code(const std::string& name) { - if(name == "MD5") - return 1; - if(name == "SHA-1") return 2; |