Sfoglia il codice sorgente

2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Removed bad code: setting certificate type priority to key
	exchange priority.
	* src/SocketCore.cc
Tatsuhiro Tsujikawa 16 anni fa
parent
commit
2fe11c1343
2 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 0
      ChangeLog
  2. 0 6
      src/SocketCore.cc

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2009-07-07  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Removed bad code: setting certificate type priority to key
+	exchange priority.
+	* src/SocketCore.cc
+
 2009-07-07  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Disconnect seeder if client is also in seed state.

+ 0 - 6
src/SocketCore.cc

@@ -742,14 +742,8 @@ void SocketCore::prepareSecureConnection()
     }
 #endif // HAVE_LIBSSL
 #ifdef HAVE_LIBGNUTLS
-    const int cert_type_priority[3] = { GNUTLS_CRT_X509,
-					GNUTLS_CRT_OPENPGP, 0
-    };
-    // while we do not support X509 certificate, most web servers require
-    // X509 stuff.
     gnutls_init(&sslSession, GNUTLS_CLIENT);
     gnutls_set_default_priority(sslSession);
-    gnutls_kx_set_priority(sslSession, cert_type_priority);
     // put the x509 credentials to the current session
     gnutls_credentials_set(sslSession, GNUTLS_CRD_CERTIFICATE,
 			   _tlsContext->getCertCred());