Any secret key

Spews warnings, but that's fine for now
This commit is contained in:
Stephen Paul Weber 2013-06-24 14:34:00 -05:00
parent e27f9e236f
commit e78424131e
1 changed files with 1 additions and 1 deletions

View File

@ -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);