aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr.c
diff options
context:
space:
mode:
authorTobias Fella <[email protected]>2023-11-02 13:34:18 +0000
committerTobias Fella <[email protected]>2023-11-02 13:46:00 +0000
commitb781feb4871d9428d1e6f243f3b72f5aa0844964 (patch)
tree0224d48e1cb19495aa2029f14470cac07dbd5f2f /dirmngr/dirmngr.c
parentw32: Use utf8 for the asctimestamp function. (diff)
downloadgnupg-tobias/tsa.tar.gz
gnupg-tobias/tsa.zip
dirmngr: Add timestamp / RFC3161 clienttobias/tsa
* dirmngr/rfc3161.c: Add rfc3161 implementation. * dirmngr/rfc3161.h: Add rfc3161 header. * dirmngr/Makefile.am: Add new file to makefile. * dirmngr/dirmngr.h: Add tsa responder url option. * dirmngr/dirmngr.c: Add tsa responder url option. * dirmngr/server.c: Add assuan call to request a timestamp.
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r--dirmngr/dirmngr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c
index f79a0f877..0ac1a7307 100644
--- a/dirmngr/dirmngr.c
+++ b/dirmngr/dirmngr.c
@@ -161,6 +161,7 @@ enum cmd_and_opt_values {
oListenBacklog,
oFakeCRL,
oCompatibilityFlags,
+ oTSAResponder,
aTest
};
@@ -308,6 +309,8 @@ static gpgrt_opt_t opts[] = {
ARGPARSE_s_n (oBatch, "batch", "@"),
ARGPARSE_s_s (oHTTPWrapperProgram, "http-wrapper-program", "@"),
+ ARGPARSE_s_s (oTSAResponder, "tsa-responder",
+ N_("|URL|use TSA responder at URL")),
ARGPARSE_group (302,N_("@\n(See the \"info\" manual for a complete listing "
"of all commands and options)\n")),
@@ -726,6 +729,7 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
xfree (opt.fake_crl);
opt.fake_crl = NULL;
opt.compat_flags = 0;
+ opt.tsa_responder = NULL;
return 1;
}
@@ -905,6 +909,7 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
pargs->err = ARGPARSE_PRINT_WARNING;
}
break;
+ case oTSAResponder: opt.tsa_responder = pargs->r.ret_str; break;
default:
return 0; /* Not handled. */