From c2ef39811db27cb28d9ce0eafc64c82d0f66df82 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 7 Oct 2010 10:58:51 +0000 Subject: Enable debugging feature for W32CE. kFreeBSD portability fix. --- src/w32-util.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/w32-util.c') 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*/ -- cgit v1.2.3