aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-03-12 17:01:24 +0000
committerWerner Koch <[email protected]>2024-03-12 17:01:24 +0000
commit14c1b73093e3fcbc43b04dfc520eb35d61241489 (patch)
treea62908e140c613c1834d7f2b3d3c18fb322a092f /g10/packet.h
parentcard: Use xstrdup for module names. (diff)
downloadgnupg-14c1b73093e3fcbc43b04dfc520eb35d61241489.tar.gz
gnupg-14c1b73093e3fcbc43b04dfc520eb35d61241489.zip
gpg: new list-option show-x509-notations
* g10/gpg.c (parse_list_options): Add new option. * g10/options.h (LIST_SHOW_X509_NOTATIONS): New. * g10/build-packet.c (search_sig_notations): New. * g10/keylist.c (print_x509_notations): New. (list_signature_print): Use macros for the sig classes. Call print_x509_notations. (list_keyblock_print): Call list_signature_print if x509 notation printing is enabled.
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 76ec78017..a13d3cdc8 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -602,8 +602,8 @@ struct notation
/* Sometimes we want to %-expand the value. In these cases, we save
that transformed value here. */
char *altvalue;
- /* If the notation is not human readable, then the value is stored
- here. */
+ /* If the notation is not human readable or the function does not
+ want to distinguish that, then the value is stored here. */
unsigned char *bdat;
/* The amount of data stored in BDAT.
@@ -877,7 +877,8 @@ struct notation *string_to_notation(const char *string,int is_utf8);
struct notation *blob_to_notation(const char *name,
const char *data, size_t len);
struct notation *sig_to_notation(PKT_signature *sig);
-void free_notation(struct notation *notation);
+struct notation *search_sig_notations (PKT_signature *sig, const char *name);
+void free_notation (struct notation *notation);
/*-- free-packet.c --*/
void free_symkey_enc( PKT_symkey_enc *enc );