From f54b85bc2d9b80f40ee025f74857fb3bb1436f9a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 4 Jul 2007 09:34:28 +0000 Subject: A bunch of minor changes for Windows. --- scd/command.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scd/command.c') diff --git a/scd/command.c b/scd/command.c index 3ffa5afb6..fa5a18977 100644 --- a/scd/command.c +++ b/scd/command.c @@ -1402,6 +1402,8 @@ cmd_unlock (assuan_context_t ctx, char *line) Multi purpose command to return certain information. Supported values of WHAT are: + version - Return the version of the program. + socket_name - Return the name of the socket. status - Return the status of the current slot (in the future, may @@ -1420,7 +1422,12 @@ cmd_getinfo (assuan_context_t ctx, char *line) { int rc = 0; - if (!strcmp (line, "socket_name")) + if (!strcmp (line, "version")) + { + const char *s = VERSION; + rc = assuan_send_data (ctx, s, strlen (s)); + } + else if (!strcmp (line, "socket_name")) { const char *s = scd_get_socket_name (); -- cgit v1.2.3