From efa17cda8b7baa17ad7326a1b6157b1e4e6f6b85 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sat, 25 Nov 2006 10:36:27 +0000 Subject: Support "TLS1.2" as protocol name. --- src/common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.1