From: Nikos Mavrogiannopoulos Date: Sat, 20 Dec 2003 18:53:23 +0000 (+0000) Subject: Corrected bug which disallowed ciphersuites other than the CERTIFICATE ones to work. X-Git-Tag: gnutls_1_1_0~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a56fad939f4cdebacc681bf3bc0df23568b4969;p=thirdparty%2Fgnutls.git Corrected bug which disallowed ciphersuites other than the CERTIFICATE ones to work. --- diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c index 4265344c44..4abb19deb9 100644 --- a/lib/gnutls_handshake.c +++ b/lib/gnutls_handshake.c @@ -2434,7 +2434,7 @@ int _gnutls_remove_unwanted_ciphersuites(gnutls_session session, /* if x509_cred==NULL we should remove all X509 ciphersuites */ - if (session->security_parameters.entity == GNUTLS_SERVER) { + if (session->security_parameters.entity == GNUTLS_SERVER && x509_cred != NULL) { ret = _gnutls_server_select_cert(session, requested_pk_algo); if (ret < 0) { gnutls_assert();