Windows, GNUPGHOME, registry

disastry at saiknes.lv disastry at saiknes.lv
Fri Aug 24 10:59:01 CEST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hello

In Windows GPG reads GNUPGHOME from registry..
Keeping settings in registry sux (even if you have been told otherwise).
I think it would be better to try to read from registry and
if there is no GNUPGHOME then try to read from environment.

I suggest to change following in g10.c and gpgv.c:

  #ifdef __MINGW32__
    opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
  #else
    opt.homedir = getenv("GNUPGHOME");
  #endif
    if( !opt.homedir || !*opt.homedir ) {
	opt.homedir = GNUPG_HOMEDIR;
    }

to:

    opt.homedir = 0;
  #ifdef __MINGW32__
    opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
  #endif
    if( !opt.homedir || !*opt.homedir ) {
        opt.homedir = getenv("GNUPGHOME");
    }
    if( !opt.homedir || !*opt.homedir ) {
	opt.homedir = GNUPG_HOMEDIR;
    }


== <EOF> ==
Disastry  http://i.am/disastry/
http://disastry.dhs.org/pgp <----PGP plugins for Netscape and MDaemon
 ^--GPG for Win32 (supports loadable modules and IDEA)
 ^---PGP 2.6.3ia-multi04 (supports IDEA, CAST5, BLOWFISH, TWOFISH,
     AES, 3DES ciphers and MD5, SHA1, RIPEMD160 hashes)
-----BEGIN PGP SIGNATURE-----
Version: Netscape PGP half-Plugin 0.14 by Disastry / PGPsdk v1.7.1

iQA/AwUBO4XsZzBaTVEuJQxkEQOa8gCffh0BNI37Dz1eLNo9Nkagm78iJ+oAoKsK
aOx8NFIUVyXTelXQgODPqbLD
=RLVW
-----END PGP SIGNATURE-----




More information about the Gnupg-devel mailing list