diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-05-10 20:59:38 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-05-10 20:59:38 +0000 |
commit | 86f4eebdf3f58e470dbba81c46c4fea96171208e (patch) | |
tree | f3234e074d397994b7b641f8d4a64530e1bc1b17 /lib | |
parent | 4a4b0a37945bf38e953654d29e4ac8d65eedf2de (diff) | |
download | gnutls-86f4eebdf3f58e470dbba81c46c4fea96171208e.tar.gz |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_algorithms.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index 0d3af64b75..e3fa630524 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -1225,8 +1225,8 @@ _gnutls_supported_ciphersuites(gnutls_session session, for (i = j = 0; i < count; i++) { /* remove private cipher suites, if requested. */ - if ( session->internals.enable_private == 0 && - tmp_ciphers[i].CipherSuite[0] == 0xFF) + if ( tmp_ciphers[i].CipherSuite[0] == 0xFF && + session->internals.enable_private == 0) continue; /* remove cipher suites which do not support the @@ -1307,9 +1307,8 @@ _gnutls_supported_compression_methods(gnutls_session session, uint8 ** comp) /* remove private compression algorithms, if requested. */ - if (tmp == -1 || (session->internals.enable_private == 0 && - tmp >= MIN_PRIVATE_COMP_ALGO)) { - + if (tmp == -1 || (tmp >= MIN_PRIVATE_COMP_ALGO && + session->internals.enable_private == 0)) { gnutls_assert(); continue; } |