1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* packet.h, build-packet.c (sig_to_notation), keygen.c

(keygen_add_notations): Tweak to handle non-human-readable notation
values.
This commit is contained in:
David Shaw 2006-03-08 23:42:45 +00:00
parent 4fea8fdbbb
commit 889c4afd78
4 changed files with 15 additions and 6 deletions

View file

@ -708,12 +708,15 @@ keygen_add_notations(PKT_signature *sig,void *opaque)
n1=strlen(notation->name);
if(notation->altvalue)
n2=strlen(notation->altvalue);
else if(!notation->flags.human)
n2=notation->blen;
else
n2=strlen(notation->value);
buf = xmalloc( 8 + n1 + n2 );
buf[0] = 0x80; /* human readable */
/* human readable or not */
buf[0] = notation->flags.human?0x80:0;
buf[1] = buf[2] = buf[3] = 0;
buf[4] = n1 >> 8;
buf[5] = n1;