summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-07-07 15:01:55 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-07-07 15:01:55 +0000
commit2fe11c13439f844d74337e926b7fce58fd1c4406 (patch)
tree707562ee842006f1f4441e4dbb32e6c4d32c8bfc /src/SocketCore.cc
parent5f966f632765117368c73b83152281f06706f1e4 (diff)
2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed bad code: setting certificate type priority to key exchange priority. * src/SocketCore.cc
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc
index a987d538..ef77f512 100644
--- a/src/SocketCore.cc
+++ b/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());