aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r--agent/gpg-agent.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index ae878eb86..0e6381972 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1162,6 +1162,16 @@ get_agent_socket_name (void)
return (s && *s)? s : NULL;
}
+/* Return the file name of the socket we are using for SSH
+ requests. */
+const char *
+get_agent_ssh_socket_name (void)
+{
+ const char *s = socket_name_ssh;
+
+ return (s && *s)? s : NULL;
+}
+
/* Create a name for the socket. With USE_STANDARD_SOCKET given as