2008-10-18 Marcus Brinkmann <marcus@g10code.com>
* w32-util.c (find_program_in_registry): Don't define. (_gpgme_get_gpg_path, _gpgme_get_gpgsm_path) (_gpgme_get_gpgconf_path): Do not check for fooProgram in the registry anymore. It is now no longer possible to overwrite the default location in that way.
This commit is contained in:
parent
759d969528
commit
4dd5ee9106
@ -1,3 +1,11 @@
|
||||
2008-10-18 Marcus Brinkmann <marcus@g10code.com>
|
||||
|
||||
* w32-util.c (find_program_in_registry): Don't define.
|
||||
(_gpgme_get_gpg_path, _gpgme_get_gpgsm_path)
|
||||
(_gpgme_get_gpgconf_path): Do not check for fooProgram in the
|
||||
registry anymore. It is now no longer possible to overwrite the
|
||||
default location in that way.
|
||||
|
||||
2008-10-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* w32-glib-io.c (_gpgme_io_fd2str): Use "%d" and not "%ld" to work
|
||||
|
@ -225,6 +225,7 @@ w32_shgetfolderpath (HWND a, int b, HANDLE c, DWORD d, LPSTR e)
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
static char *
|
||||
find_program_in_registry (const char *name)
|
||||
{
|
||||
@ -245,6 +246,7 @@ find_program_in_registry (const char *name)
|
||||
}
|
||||
return program;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static char *
|
||||
@ -307,8 +309,10 @@ _gpgme_get_gpg_path (void)
|
||||
static char *gpg_program;
|
||||
|
||||
LOCK (get_path_lock);
|
||||
#if 0
|
||||
if (!gpg_program)
|
||||
gpg_program = find_program_in_registry ("gpgProgram");
|
||||
#endif
|
||||
if (!gpg_program)
|
||||
gpg_program = find_program_in_inst_dir ("gpg.exe");
|
||||
if (!gpg_program)
|
||||
@ -324,8 +328,10 @@ _gpgme_get_gpgsm_path (void)
|
||||
static char *gpgsm_program;
|
||||
|
||||
LOCK (get_path_lock);
|
||||
#if 0
|
||||
if (!gpgsm_program)
|
||||
gpgsm_program = find_program_in_registry ("gpgsmProgram");
|
||||
#endif
|
||||
if (!gpgsm_program)
|
||||
gpgsm_program = find_program_in_inst_dir ("gpgsm.exe");
|
||||
if (!gpgsm_program)
|
||||
@ -341,8 +347,10 @@ _gpgme_get_gpgconf_path (void)
|
||||
static char *gpgconf_program;
|
||||
|
||||
LOCK (get_path_lock);
|
||||
#if 0
|
||||
if (!gpgconf_program)
|
||||
gpgconf_program = find_program_in_registry ("gpgconfProgram");
|
||||
#endif
|
||||
if (!gpgconf_program)
|
||||
gpgconf_program = find_program_in_inst_dir ("gpgconf.exe");
|
||||
if (!gpgconf_program)
|
||||
|
Loading…
Reference in New Issue
Block a user