From: Simon Josefsson Date: Wed, 29 Nov 2006 11:26:55 +0000 (+0000) Subject: Attempt TLS 1.2 and TLS 1.1 too, by default. X-Git-Tag: gnutls_1_7_0~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50d9aa9e33772483ada5d97aeeb106bdbf29b7b5;p=thirdparty%2Fgnutls.git Attempt TLS 1.2 and TLS 1.1 too, by default. --- diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c index 898e6f3d79..af829efc66 100644 --- a/lib/gnutls_priority.c +++ b/lib/gnutls_priority.c @@ -258,7 +258,7 @@ gnutls_certificate_type_set_priority (gnutls_session_t session, * these defaults are ok. You may override any of the following priorities by calling * the appropriate functions. * - * The order is TLS1, SSL3 for protocols. + * The order is TLS 1.2, TLS 1.1, TLS 1.0, SSL3 for protocols. * RSA, DHE_DSS, DHE_RSA for key exchange * algorithms. SHA, MD5 and RIPEMD160 for MAC algorithms. * AES_128_CBC, 3DES_CBC, @@ -270,7 +270,7 @@ gnutls_certificate_type_set_priority (gnutls_session_t session, int gnutls_set_default_priority (gnutls_session_t session) { - static const int protocol_priority[] = { GNUTLS_TLS1, GNUTLS_SSL3, 0 }; + static const int protocol_priority[] = { GNUTLS_TLS1_2, GNUTLS_TLS1_1, GNUTLS_SSL3, 0 }; static const int kx_priority[] = { GNUTLS_KX_RSA, GNUTLS_KX_DHE_DSS, GNUTLS_KX_DHE_RSA, 0 }; static const int cipher_priority[] = {