204 |
if (rc_ok (rc)) { |
if (rc_ok (rc)) { |
205 |
RegCloseKey (reg); |
RegCloseKey (reg); |
206 |
rc = RegOpenKeyEx (HKEY_CURRENT_USER, WINPT_REG"\\Keyserver", 0, KEY_READ, ®); |
rc = RegOpenKeyEx (HKEY_CURRENT_USER, WINPT_REG"\\Keyserver", 0, KEY_READ, ®); |
207 |
if( !rc_ok (rc)) { |
if (!rc_ok (rc)) { |
208 |
RegCreateKey (HKEY_CURRENT_USER, WINPT_REG"\\Keyserver", ®); |
RegCreateKey (HKEY_CURRENT_USER, WINPT_REG"\\Keyserver", ®); |
209 |
RegCloseKey (reg); |
RegCloseKey (reg); |
210 |
} |
} |
426 |
} |
} |
427 |
|
|
428 |
|
|
429 |
char * |
char* |
430 |
get_reg_entry_gpg (const char *key) |
get_reg_entry_gpg (const char *key) |
431 |
{ |
{ |
432 |
return get_reg_entry (HKEY_CURRENT_USER, "Software\\GNU\\GnuPG", key); |
char *p; |
433 |
|
p = get_reg_entry (HKEY_CURRENT_USER, "Software\\GNU\\GnuPG", key); |
434 |
|
if (!p || strlen (p) == 0) { |
435 |
|
free_if_alloc (p); |
436 |
|
return NULL; |
437 |
|
} |
438 |
|
return p; |
439 |
} |
} |
440 |
|
|
441 |
|
|