diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-20 18:53:23 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-20 18:53:23 +0000 |
commit | 8a56fad939f4cdebacc681bf3bc0df23568b4969 (patch) | |
tree | 729ab70735357ef87a3acf03bd3ef52e1fefeed3 | |
parent | 65dd1829c67e972ac75b5439b2a78425648e3f95 (diff) | |
download | gnutls-8a56fad939f4cdebacc681bf3bc0df23568b4969.tar.gz |
Corrected bug which disallowed ciphersuites other than the CERTIFICATE ones to work.
-rw-r--r-- | lib/gnutls_handshake.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |