aboutsummaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-03-08 23:42:45 +0000
committerDavid Shaw <[email protected]>2006-03-08 23:42:45 +0000
commit889c4afd78cad05978209cc8ee70df63fc419d1c (patch)
treefaf166a6055032581a0a3019ddfd762e5b6f33a4 /g10/build-packet.c
parent* options.h, sign.c (mk_notation_policy_etc), gpg.c (add_notation_data): (diff)
downloadgnupg-889c4afd78cad05978209cc8ee70df63fc419d1c.tar.gz
gnupg-889c4afd78cad05978209cc8ee70df63fc419d1c.zip
* packet.h, build-packet.c (sig_to_notation), keygen.c
(keygen_add_notations): Tweak to handle non-human-readable notation values.
Diffstat (limited to '')
-rw-r--r--g10/build-packet.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 1ceac358d..ea8a40041 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -1000,18 +1000,18 @@ 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(2+strlen(_("not human readable"))+2+1);
- strcpy(n->value,"[ ");
- strcat(n->value,_("not human readable"));
- strcat(n->value," ]");
+ n->value=xmalloc(n2);
+ n->blen=n2;
}
+ memcpy(n->value,&p[8+n1],n2);
+
n->flags.critical=crit;
n->next=list;