aboutsummaryrefslogtreecommitdiffstats
path: root/common/homedir.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-08-14 16:50:27 +0000
committerWerner Koch <[email protected]>2007-08-14 16:50:27 +0000
commitd20d11a0eeb306feb9c256eadd1b4b606b15934e (patch)
tree9d5671631dc8599fa44aafd9572b1c282ddb4110 /common/homedir.c
parentImplemented the chain model for X.509 validation. (diff)
downloadgnupg-d20d11a0eeb306feb9c256eadd1b4b606b15934e.tar.gz
gnupg-d20d11a0eeb306feb9c256eadd1b4b606b15934e.zip
Documentaion updates.
Support doe Dirmngr under W32. Fixed a yat2m bug.
Diffstat (limited to 'common/homedir.c')
-rw-r--r--common/homedir.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c
index 212c3509d..52206191e 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -290,6 +290,29 @@ gnupg_datadir (void)
}
+/* Return the default socket name used by DirMngr. */
+const char *
+dirmngr_socket_name (void)
+{
+#ifdef HAVE_W32_SYSTEM
+ static char *name;
+
+ if (!name)
+ {
+ const char *s1, *s2;
+ s1 = w32_rootdir ();
+ s2 = DIRSEP_S "S.dirmngr";
+ name = xmalloc (strlen (s1) + strlen (s2) + 1);
+ strcpy (stpcpy (name, s1), s2);
+ }
+ return name;
+#else /*!HAVE_W32_SYSTEM*/
+ return "/var/run/dirmngr/socket";
+#endif /*!HAVE_W32_SYSTEM*/
+}
+
+
+
/* Return the file name of a helper tool. WHICH is one of the
GNUPG_MODULE_NAME_foo constants. */
const char *