mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
903328a3ef
commit
67a4bc8d53
5 changed files with 23 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue