aboutsummaryrefslogtreecommitdiffstats
path: root/sm/sign.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-04-03 12:06:36 +0000
committerWerner Koch <[email protected]>2023-04-03 12:10:33 +0000
commita5360ae4c7bfe6df6754409d5bd5c5a521ae5e6f (patch)
tree035902bfb2546b1b2c0e8446733d681b0a57c4d0 /sm/sign.c
parentgpgsm: Create binary detached sigs with definite form length octets. (diff)
downloadgnupg-a5360ae4c7bfe6df6754409d5bd5c5a521ae5e6f.tar.gz
gnupg-a5360ae4c7bfe6df6754409d5bd5c5a521ae5e6f.zip
agent: Add trustlist flag "de-vs".
* agent/trustlist.c (struct trustitem_s): Add field de_vs. (read_one_trustfile): Parse it. (istrusted_internal): Emit TRUSTLISTFLAG status line. * sm/gpgsm.h (struct rootca_flags_s): Add field de_vs. * sm/call-agent.c (istrusted_status_cb): Detect the flags. * sm/sign.c (write_detached_signature): Remove unused vars. -- Right now this flag has no effect; we first need to specify the exact behaviour. GnuPG-bug-id: 5079
Diffstat (limited to 'sm/sign.c')
-rw-r--r--sm/sign.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sm/sign.c b/sm/sign.c
index 64bbf8d56..b3b7e1883 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -433,8 +433,8 @@ write_detached_signature (ctrl_t ctrl, const void *blob, size_t bloblen,
estream_t out_fp)
{
gpg_error_t err;
- const unsigned char *p, *psave;
- size_t n, nsave, objlen, objlensave, hdrlen;
+ const unsigned char *p;
+ size_t n, objlen, hdrlen;
int class, tag, cons, ndef;
const unsigned char *p_ctoid, *p_version, *p_algoset, *p_dataoid;
size_t n_ctoid, n_version, n_algoset, n_dataoid;
@@ -445,6 +445,8 @@ write_detached_signature (ctrl_t ctrl, const void *blob, size_t bloblen,
unsigned char *finalder = NULL;
size_t finalderlen;
+ (void)ctrl;
+
p = blob;
n = bloblen;
if ((err=parse_ber_header (&p,&n,&class,&tag,&cons,&ndef,&objlen,&hdrlen)))