summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-03-09 03:09:26 +0100
committerMichael Tänzer <neo@nhng.de>2014-03-09 03:09:26 +0100
commit91f4bf7234d97491b04db05564de1b4a1e939f9e (patch)
treee230802b1119c2918ed617633d11908521cb22d3
parent7b251cbd28ebddadbf9f1ee0f4faf0bddbae3c5f (diff)
downloadcacert-devel-91f4bf7234d97491b04db05564de1b4a1e939f9e.tar.gz
cacert-devel-91f4bf7234d97491b04db05564de1b4a1e939f9e.tar.xz
cacert-devel-91f4bf7234d97491b04db05564de1b4a1e939f9e.zip
bug 1255: Fix syntax error (bracketing)
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/lib/check_weak_key.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/lib/check_weak_key.php b/includes/lib/check_weak_key.php
index 7f96a88..6628bed 100644
--- a/includes/lib/check_weak_key.php
+++ b/includes/lib/check_weak_key.php
@@ -261,7 +261,7 @@ function checkWeakKeyText($text)
}
//Check the numbers are all less than the public modulus P
- if(0 <= gmp_cmp($num_Q, $num_P)) || 0 <= gmp_cmp($num_G, $num_P)) || 0 <= gmp_cmp($num_Y, $num_P))) {
+ if(0 <= gmp_cmp($num_Q, $num_P) || 0 <= gmp_cmp($num_G, $num_P) || 0 <= gmp_cmp($num_Y, $num_P)) {
return failWithId("checkWeakKeyText(): The supplied DSA ".
"key does seem to be normalized to have Q < P, G < P and Y < P.\nData:\n$text");
}