summaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-05-31 15:43:51 +0200
committerWerner Koch <wk@gnupg.org>2016-05-31 15:51:18 +0200
commit67a4bc8d536f6997f14daff4c039abd48a172100 (patch)
tree743e50929a97c4d54e0ea13a5b2b15fa79f76a07 /g10/build-packet.c
parentbuild: Fix URL. (diff)
downloadgnupg2-67a4bc8d536f6997f14daff4c039abd48a172100.tar.xz
gnupg2-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/build-packet.c')
-rw-r--r--g10/build-packet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 9b6496766..4bfc2ac10 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -1277,8 +1277,9 @@ sig_to_notation(PKT_signature *sig)
{
const byte *p;
size_t len;
- int seq=0,crit;
- struct notation *list=NULL;
+ int seq = 0;
+ int crit;
+ notation_t list = NULL;
/* See RFC 4880, 5.2.3.16 for the format of notation data. In
short, a notation has:
@@ -1323,6 +1324,7 @@ sig_to_notation(PKT_signature *sig)
n->value=xmalloc(n2+1);
memcpy(n->value,&p[8+n1],n2);
n->value[n2]='\0';
+ n->flags.human = 1;
}
else
/* Binary data. */