From e78424131eaea50471bc1df0054238c9412c9726 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 24 Jun 2013 14:34:00 -0500 Subject: [PATCH] Any secret key Spews warnings, but that's fine for now --- examples/deASCIIdeCrypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/deASCIIdeCrypt.php b/examples/deASCIIdeCrypt.php index d567b32..1afbcfd 100644 --- a/examples/deASCIIdeCrypt.php +++ b/examples/deASCIIdeCrypt.php @@ -14,7 +14,7 @@ $keyEncrypted = OpenPGP_Message::parse(OpenPGP::unarmor($keyASCII, 'PGP PRIVATE // Try each secret key packet foreach($keyEncrypted as $p) { - if(!($p instanceof OpenPGP_SecretSubkeyPacket)) continue; + if(!($p instanceof OpenPGP_SecretKeyPacket)) continue; $key = OpenPGP_Crypt_AES_TripleDES::decryptSecretKey($argv[2], $p);