diff options
| author | Werner Koch <[email protected]> | 2010-10-07 10:58:51 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2010-10-07 10:58:51 +0000 | 
| commit | c2ef39811db27cb28d9ce0eafc64c82d0f66df82 (patch) | |
| tree | 8396b4b9fa5817b67bb5a89c402c897d65e24deb /src/w32-util.c | |
| parent | Return GPG_ERR_MISSING_ISSUER_CERT. (diff) | |
| download | gpgme-c2ef39811db27cb28d9ce0eafc64c82d0f66df82.tar.gz gpgme-c2ef39811db27cb28d9ce0eafc64c82d0f66df82.zip | |
Enable debugging feature for W32CE.
kFreeBSD portability fix.
Diffstat (limited to '')
| -rw-r--r-- | src/w32-util.c | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/src/w32-util.c b/src/w32-util.c index 22c2a0f3..afac6795 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -588,3 +588,24 @@ _gpgme_mkstemp (int *fd, char **name)    *name = tmpname;    return 0;  } + + + +#ifdef HAVE_W32CE_SYSTEM +/* Return a malloced string with the replacement value for the +   GPGME_DEBUG envvar.  Caller must release.  Returns NULL if not +   set.  */ +char * +_gpgme_w32ce_get_debug_envvar (void) +{ +  char *tmp; + +  tmp = w32_read_registry (L"\\Software\\GNU\\gpgme", L"debug"); +  if (tmp && !*tmp) +    { +      free (tmp); +      tmp = NULL; +    } +  return NULL; +} +#endif /*HAVE_W32CE_SYSTEM*/ | 
