diff options
author | Werner Koch <[email protected]> | 2007-07-04 09:34:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-07-04 09:34:28 +0000 |
commit | f54b85bc2d9b80f40ee025f74857fb3bb1436f9a (patch) | |
tree | 49c49918b0e18b84ab5b242d796e36cdc6215710 /scd/command.c | |
parent | More W32 related changes (diff) | |
download | gnupg-f54b85bc2d9b80f40ee025f74857fb3bb1436f9a.tar.gz gnupg-f54b85bc2d9b80f40ee025f74857fb3bb1436f9a.zip |
A bunch of minor changes for Windows.
Diffstat (limited to '')
-rw-r--r-- | scd/command.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 (); |