Skip to content

Commit

Permalink
Use the new Horde_Crypt_Pgp_Parse class
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 13, 2013
1 parent d9ee65c commit f16767f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imp/lib/Crypt/Pgp.php
Expand Up @@ -667,12 +667,14 @@ public function publicKeyMimePart($key = null)
*/
public function getKeys($data)
{
global $injector;

$out = array(
'public' => array(),
'private' => array()
);

foreach ($this->parsePGPData($data) as $val) {
foreach ($injector->getInstance('Horde_Crypt_Pgp_Parse')->parse($data) as $val) {
switch ($val['type']) {
case Horde_Crypt_Pgp::ARMOR_PUBLIC_KEY:
case Horde_Crypt_Pgp::ARMOR_PRIVATE_KEY:
Expand Down

0 comments on commit f16767f

Please sign in to comment.