mirror of https://github.com/aria2/aria2
2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed bad code: setting certificate type priority to key exchange priority. * src/SocketCore.ccpull/1/head
parent
5f966f6327
commit
2fe11c1343
|
@ -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.
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue