diff options
| author | Werner Koch <[email protected]> | 2026-05-17 12:59:42 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2026-05-17 12:59:42 +0200 |
| commit | 8081d34e5f620a614f58617700f9b473392e6478 (patch) | |
| tree | 6322bb0a23a303ccc71e6c313856ab5dcca654ca /src/sig-notation.c | |
| parent | engine:gpgconf: Increase the buffer size. (diff) | |
| download | gpgme-8081d34e5f620a614f58617700f9b473392e6478.tar.gz gpgme-8081d34e5f620a614f58617700f9b473392e6478.zip | |
Support setting attributes for CMS signatures.
* src/gpgme.h.in (GPGME_SIG_NOTATION_UNPROTECTED): New.
(struct _gpgme_sig_notation): Add field 'unprotected'.
* src/sig-notation.c (sig_notation_set_flags): Set flag.
* src/engine-gpgsm.c (gpgsm_sign): Implement setting of notations.
* tests/run-support.h: Add conversion macros.
* tests/run-sign.c (struct mystringlist_s): New.
(xmalloc): New.
(xstrtokenize): New.
(print_result): Add arg fp and adjust callers.
(main): Add options --binary and --notation.
Diffstat (limited to 'src/sig-notation.c')
| -rw-r--r-- | src/sig-notation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sig-notation.c b/src/sig-notation.c index bebf426e..30573ca2 100644 --- a/src/sig-notation.c +++ b/src/sig-notation.c @@ -58,6 +58,7 @@ sig_notation_set_flags (gpgme_sig_notation_t notation, accessible individually for the user. */ notation->human_readable = flags & GPGME_SIG_NOTATION_HUMAN_READABLE ? 1 : 0; notation->critical = flags & GPGME_SIG_NOTATION_CRITICAL ? 1 : 0; + notation->unprotected = flags & GPGME_SIG_NOTATION_UNPROTECTED ? 1 : 0; notation->flags = flags; } |
