diff options
author | David Shaw <[email protected]> | 2006-03-09 01:15:18 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-03-09 01:15:18 +0000 |
commit | 0f7b4371b2d19108668f4a3a055ac62c831cc3d3 (patch) | |
tree | 4804b7196d65a0261a39a0a7e77514ca918c6f0d /g10/build-packet.c | |
parent | * packet.h, build-packet.c (sig_to_notation), keygen.c (diff) | |
download | gnupg-0f7b4371b2d19108668f4a3a055ac62c831cc3d3.tar.gz gnupg-0f7b4371b2d19108668f4a3a055ac62c831cc3d3.zip |
* packet.h, build-packet.c (sig_to_notation), keygen.c
(keygen_add_notations): Provide printable text for non-human-readable
notation values.
Diffstat (limited to '')
-rw-r--r-- | g10/build-packet.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c index ea8a40041..2ffc758e2 100644 --- a/g10/build-packet.c +++ b/g10/build-packet.c @@ -1000,17 +1000,21 @@ sig_to_notation(PKT_signature *sig) if(p[0]&0x80) { - n->flags.human=1; n->value=xmalloc(n2+1); + memcpy(n->value,&p[8+n1],n2); n->value[n2]='\0'; } else { - n->value=xmalloc(n2); + n->bdat=xmalloc(n2); n->blen=n2; - } + memcpy(n->bdat,&p[8+n1],n2); - memcpy(n->value,&p[8+n1],n2); + n->value=xmalloc(2+strlen(_("not human readable"))+2+1); + strcpy(n->value,"[ "); + strcat(n->value,_("not human readable")); + strcat(n->value," ]"); + } n->flags.critical=crit; @@ -1030,6 +1034,8 @@ free_notation(struct notation *notation) xfree(n->name); xfree(n->value); + xfree(n->altvalue); + xfree(n->bdat); notation=n->next; xfree(n); } |