[dev] PGP race condition.

Ola Lundqvist opal@debian.org
Mon, 22 Apr 2002 22:14:26 +0200


One more thing.

Should the PGP options be visible of the $conf['utils']['gnupg']
variable is empty? With the current default configuration that
is the case which can cause some confusion for the user
(who might think that we have reimplemented pgp).

Regards,

// Ola

On Mon, Apr 22, 2002 at 10:05:35PM +0200, Ola Lundqvist wrote:
> Hi
> 
> I have a question (and a suggestion) the the PGP code in
> horde.
> 
> In horde/lib/Crypt/pgp.php
> 
> ...
>     function Horde_Crypt_pgp($params)
>     {
>         $this->tempdir = Horde::getTempDir();
> 
>         /* Store the location of GnuPG and set common options. */
> 
> ...
> 
> This means that the gpg home directory will be /tmp.
> 
> If two peoply will generate a key at the same time this will
> become a problem. I suggest that this directory is
> /tmp/$hordesession. Any suggestions on this?
> That directory have to be created and removed but that should
> not be a great problem.
> 
> If no one object I'll implement that (If someone just tell me
> how to get the session id). :)
> 
> Regards,
> 
> // Ola
> 
> -- 
>  --------------------- Ola Lundqvist ---------------------------
> /  opal@debian.org                     Björnkärrsgatan 5 A.11   \
> |  opal@lysator.liu.se                 584 36 LINKÖPING         |
> |  +46 (0)13-17 69 83                  +46 (0)70-332 1551       |
> |  http://www.opal.dhs.org             UIN/icq: 4912500         |
> \  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
>  ---------------------------------------------------------------



-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal@debian.org                     Björnkärrsgatan 5 A.11   \
|  opal@lysator.liu.se                 584 36 LINKÖPING         |
|  +46 (0)13-17 69 83                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------