diff options
Diffstat (limited to 'src/w32-util.c')
| -rw-r--r-- | src/w32-util.c | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/src/w32-util.c b/src/w32-util.c index d7fc06f3..bc186022 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -381,6 +381,29 @@ _gpgme_get_g13_path (void)  const char * +_gpgme_get_uiserver_socket_path (void) +{ +  static char *socket_path; +  char *homedir; +  const char name[] = "S.uiserver"; + +  if (socket_path) +    return socket_path; + +  homedir = _gpgme_get_default_homedir (); +  if (! homedir) +    return NULL; + +  socket_path = malloc (strlen (homedir) + 1 + strlen (name) + 1); +  if (! socket_path) +    return NULL; + +  strcpy (stpcpy (stpcpy (socket_path, homedir), "\\"), name); +  return socket_path; +} + + +const char *  _gpgme_get_w32spawn_path (void)  {    static char *w32spawn_program; | 
