summaryrefslogtreecommitdiffstats
path: root/common/asshelp.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-01-08 06:42:29 +0100
committerWerner Koch <wk@gnupg.org>2016-01-08 06:42:29 +0100
commit496643291e1e346434e9c98405c5a370957eb7d3 (patch)
treee14c574127f53f58397ef9a2e00841632c9db258 /common/asshelp.h
parentcommon: New put_membuf_cb to replace static membuf_data_cb. (diff)
downloadgnupg2-496643291e1e346434e9c98405c5a370957eb7d3.tar.xz
gnupg2-496643291e1e346434e9c98405c5a370957eb7d3.zip
common: New function get_assuan_server_version.
* common/asshelp.c: Include membuf.h. (get_assuan_server_version): New. * g10/call-agent.c (agent_get_version): Use new function. -- Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/asshelp.h')
-rw-r--r--common/asshelp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/asshelp.h b/common/asshelp.h
index 35d211501..20414bd35 100644
--- a/common/asshelp.h
+++ b/common/asshelp.h
@@ -74,6 +74,10 @@ start_new_dirmngr (assuan_context_t *r_ctx,
gpg_error_t (*status_cb)(ctrl_t, int, ...),
ctrl_t status_cb_arg);
+/* Return the version of a server using "GETINFO version". */
+gpg_error_t get_assuan_server_version (assuan_context_t ctx,
+ int mode, char **r_version);
+
/*-- asshelp2.c --*/