diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 3be0596862..f5480cb98c 100644 --- a/src/common.c +++ b/src/common.c @@ -725,6 +725,12 @@ parse_macs (char **macs, int nmacs, int *mac_priority) mac_priority[j++] = GNUTLS_MAC_MD5; else if (strncasecmp (macs[i], "RMD", 3) == 0) mac_priority[j++] = GNUTLS_MAC_RMD160; + else if (strncasecmp (macs[i], "SHA512", 6) == 0) + mac_priority[j++] = GNUTLS_MAC_SHA512; + else if (strncasecmp (macs[i], "SHA384", 6) == 0) + mac_priority[j++] = GNUTLS_MAC_SHA384; + else if (strncasecmp (macs[i], "SHA256", 6) == 0) + mac_priority[j++] = GNUTLS_MAC_SHA256; else if (strncasecmp (macs[i], "SHA", 3) == 0) mac_priority[j++] = GNUTLS_MAC_SHA1; else |