aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_extensions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_extensions.cpp')
-rw-r--r--src/tls/tls_extensions.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tls/tls_extensions.cpp b/src/tls/tls_extensions.cpp
index df25c40a5..d66b055c8 100644
--- a/src/tls/tls_extensions.cpp
+++ b/src/tls/tls_extensions.cpp
@@ -400,6 +400,8 @@ std::string Signature_Algorithms::hash_algo_name(byte code)
{
switch(code)
{
+ case 1:
+ return "MD5";
// code 1 is MD5 - ignore it
case 2:
@@ -419,6 +421,9 @@ 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;