aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-05-31 13:43:51 +0000
committerWerner Koch <[email protected]>2016-05-31 13:51:18 +0000
commit67a4bc8d536f6997f14daff4c039abd48a172100 (patch)
tree743e50929a97c4d54e0ea13a5b2b15fa79f76a07 /g10/packet.h
parentbuild: Fix URL. (diff)
downloadgnupg-67a4bc8d536f6997f14daff4c039abd48a172100.tar.gz
gnupg-67a4bc8d536f6997f14daff4c039abd48a172100.zip
gpg: New status code NOTATION_FLAGS.
* common/status.h (STATUS_NOTATION_FLAGS: New. * g10/packet.h (struct notation): Add flags.human. (notation_t): New typedef. * g10/build-packet.c (sig_to_notation): Set flags.human. * g10/keylist.c (show_notation): Write STATUS_NOTATION_FLAGS.
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 194c13442..6ea2f8314 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -531,12 +531,14 @@ struct notation
/* The notation's name. */
char *name;
/* If the notation is human readable, then the value is stored here
- as a NUL-terminated string. */
+ as a NUL-terminated string. If it is not human readable a human
+ readable approximation of the binary value _may_ be stored
+ here. */
char *value;
/* 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 strored
+ /* If the notation is not human readable, then the value is stored
here. */
unsigned char *bdat;
/* The amount of data stored in BDAT.
@@ -552,6 +554,8 @@ struct notation
{
/* The notation is critical. */
unsigned int critical:1;
+ /* The notation is human readable. */
+ unsigned int human:1;
/* The notation should be deleted. */
unsigned int ignore:1;
} flags;
@@ -559,6 +563,7 @@ struct notation
/* A field to facilitate creating a list of notations. */
struct notation *next;
};
+typedef struct notation *notation_t;
/*-- mainproc.c --*/
void reset_literals_seen(void);