Use Horde_Crypt to instantiate.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Nov 2008 21:00:33 +0000 (14:00 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Nov 2008 21:00:33 +0000 (14:00 -0700)
imp/pgp.php

index 92a340d..7403703 100644 (file)
@@ -90,9 +90,8 @@ function _textWindowOutput($filename, $msg)
 }
 
 require_once dirname(__FILE__) . '/lib/base.php';
-require_once IMP_BASE . '/lib/Crypt/PGP.php';
 
-$imp_pgp = new IMP_PGP();
+$imp_pgp = &Horde_Crypt::singleton(array('imp', 'pgp'));
 $secure_check = $imp_pgp->requireSecureConnection();
 
 /* Run through the action handlers */