summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-02-20 10:03:11 +0100
committerWerner Koch <wk@gnupg.org>2020-02-20 11:13:32 +0100
commit0e8f6e2aa98c212442001036fb5178cd6cd8af59 (patch)
treee5e6fa4b94889eff428598e64b0d093702bc02b4 /g10/call-agent.c
parentbuild: Require libgpg-error 1.38 (diff)
downloadgnupg2-0e8f6e2aa98c212442001036fb5178cd6cd8af59.tar.xz
gnupg2-0e8f6e2aa98c212442001036fb5178cd6cd8af59.zip
gpg: Use gpgrt's new option parser to provide a global conf file.
* common/util.h: Remove argparse.h. * common/argparse.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS. * configure.ac (GPGRT_ENABLE_ARGPARSE_MACROS): Define. * agent/gpg-agent.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS and include argparse.h. Do this also for all main modules which use our option parser except for gpg. Replace calls to strusage by calls to gpgrt_strusage everywhere. * g10/gpg.c (opts): Change type to gpgrt_opt_t. Flag oOptions and oNoOptions with ARGPARSE_conffile and ARGPARSE_no_conffile. (main): Change type of pargs to gpgrt_argparse_t. Rework the option parser to make use of the new gpgrt_argparser. -- This is not yet finished but a make check works. gpg has the most complex and oldest option handling and thus this is the first migration target. SE-Linux checks and version-ed config files are missing and will be added later. GnuPG-bug-id: 4788 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/call-agent.c')
-rw-r--r--g10/call-agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c
index e638b83eb..98d965cbe 100644
--- a/g10/call-agent.c
+++ b/g10/call-agent.c
@@ -222,7 +222,7 @@ warn_version_mismatch (assuan_context_t ctx, const char *servername, int mode)
{
gpg_error_t err;
char *serverversion;
- const char *myversion = strusage (13);
+ const char *myversion = gpgrt_strusage (13);
err = get_assuan_server_version (ctx, mode, &serverversion);
if (err)