]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
prefer plain RSA to DHE-RSA and DHE-DSS
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 10 Feb 2013 12:16:09 +0000 (13:16 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 10 Feb 2013 12:16:09 +0000 (13:16 +0100)
lib/gnutls_priority.c

index 33ed29442eb54caf03842ac0c340b9e0fd474637..753787bcb1c4ed0f7119de8cc7f2a982391b754d 100644 (file)
@@ -321,9 +321,13 @@ static const int kx_priority_secure[] = {
    */
   GNUTLS_KX_ECDHE_ECDSA,
   GNUTLS_KX_ECDHE_RSA,
+  GNUTLS_KX_RSA,
+  /* KX-RSA is now ahead of DHE-RSA and DHE-DSS due to the compatibility
+   * issues the DHE ciphersuites have. That is, one cannot enforce a specific
+   * security level without dropping the connection. 
+   */
   GNUTLS_KX_DHE_RSA,
   GNUTLS_KX_DHE_DSS,
-  GNUTLS_KX_RSA,
   /* GNUTLS_KX_ANON_DH: Man-in-the-middle prone, don't add!
    * GNUTLS_KX_RSA_EXPORT: Deprecated, don't add!
    */