summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-08-09 01:51:49 +0200
committerBenny Baumann <BenBE@geshi.org>2014-08-09 01:51:49 +0200
commit61da9da57861dc9c6a28a6de2c5e25e3b0a5368f (patch)
tree3dc6f074fd13c4d6d6bfdfef43293ffe7cf24d61
parent32ea5681395b51dfab4c8bb7992e388af54657cd (diff)
parent061fec271f164c0efb356d98b5b4f640ed3c6c2f (diff)
downloadcacert-devel-61da9da57861dc9c6a28a6de2c5e25e3b0a5368f.tar.gz
cacert-devel-61da9da57861dc9c6a28a6de2c5e25e3b0a5368f.tar.xz
cacert-devel-61da9da57861dc9c6a28a6de2c5e25e3b0a5368f.zip
Merge branch 'bug-1297' into testserver-stable
-rw-r--r--includes/lib/check_weak_key.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/lib/check_weak_key.php b/includes/lib/check_weak_key.php
index 59c6cd6..dd4f3a5 100644
--- a/includes/lib/check_weak_key.php
+++ b/includes/lib/check_weak_key.php
@@ -128,7 +128,7 @@ function checkWeakKeyText($text)
if ($algorithm === "rsaEncryption")
{
- if (!preg_match('/^\s*RSA Public Key: \((\d+) bit\)$/m', $text, $keysize))
+ if (!preg_match('/^\s*Public-Key: \((\d+) bit\)$/m', $text, $keysize))
{
return failWithId("checkWeakKeyText(): Couldn't parse the RSA ".
"key size.\nData:\n$text");
@@ -308,7 +308,7 @@ function checkDebianVulnerability($text, $keysize = 0)
if ($algorithm !== "rsaEncryption") return false;
/* Extract public key size */
- if (!preg_match('/^\s*RSA Public Key: \((\d+) bit\)$/m', $text,
+ if (!preg_match('/^\s*Public-Key: \((\d+) bit\)$/m', $text,
$keysize))
{
trigger_error("checkDebianVulnerability(): Couldn't parse the ".
@@ -338,7 +338,7 @@ function checkDebianVulnerability($text, $keysize = 0)
/* Extract RSA modulus */
- if (!preg_match('/^\s*Modulus \(\d+ bit\):\n'.
+ if (!preg_match('/^\s*Modulus:\n'.
'((?:\s*[0-9a-f][0-9a-f]:(?:\n)?)+[0-9a-f][0-9a-f])$/m',
$text, $modulus))
{