]> WPIA git - gigi.git/commitdiff
Fix: wrong cipher ordering
authorFelix Dörre <felix@dogcraft.de>
Fri, 20 Feb 2015 01:54:59 +0000 (02:54 +0100)
committerFelix Dörre <felix@dogcraft.de>
Fri, 20 Feb 2015 11:36:59 +0000 (12:36 +0100)
src/org/cacert/gigi/util/CipherInfo.java

index 2508fae738a5e400722ec874c0635996002355f7..0160093401fd5c91dbcb14ba102dcb68d77dc0ca 100644 (file)
@@ -256,7 +256,7 @@ public class CipherInfo implements Comparable<CipherInfo> {
         }
         boolean mySHA = macName.startsWith("SHA");
         boolean oSHA = o.macName.startsWith("SHA");
-        if (mySHA && !oSHA) {
+        if ( !mySHA && oSHA) {
             return -1;
         }
         if (mySHA && !oSHA) {