]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 10 May 2004 20:59:38 +0000 (20:59 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 10 May 2004 20:59:38 +0000 (20:59 +0000)
lib/gnutls_algorithms.c

index 0d3af64b75f7a14d1397a90ab885d4840f5607dc..e3fa630524a35eafb208b2f24cd895a3dccd6205 100644 (file)
@@ -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;
                }