summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-11-25 10:36:27 +0000
committerSimon Josefsson <simon@josefsson.org>2006-11-25 10:36:27 +0000
commitefa17cda8b7baa17ad7326a1b6157b1e4e6f6b85 (patch)
tree949c49d77ff13a675ef41f07716549bee53771b6 /src
parenta0fc35afa0914861e3f00a62965f559b2029dcf8 (diff)
downloadgnutls-efa17cda8b7baa17ad7326a1b6157b1e4e6f6b85.tar.gz
Support "TLS1.2" as protocol name.
Diffstat (limited to 'src')
-rw-r--r--src/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 22ba54a2d3..edb5e0a4d1 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
* Author: Nikos Mavroyanopoulos
*
* This file is part of GNUTLS.
@@ -670,6 +670,8 @@ parse_protocols (char **protocols, int protocols_size, int *protocol_priority)
protocol_priority[j++] = GNUTLS_SSL3;
else if (strncasecmp (protocols[i], "TLS1.1", 6) == 0)
protocol_priority[j++] = GNUTLS_TLS1_1;
+ else if (strncasecmp (protocols[i], "TLS1.2", 6) == 0)
+ protocol_priority[j++] = GNUTLS_TLS1_2;
else if (strncasecmp (protocols[i], "TLS", 3) == 0)
protocol_priority[j++] = GNUTLS_TLS1_0;
else