aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32-util.c')
-rw-r--r--src/w32-util.c21
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*/