diff options
author | David Shaw <[email protected]> | 2006-03-08 23:42:45 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-03-08 23:42:45 +0000 |
commit | 889c4afd78cad05978209cc8ee70df63fc419d1c (patch) | |
tree | faf166a6055032581a0a3019ddfd762e5b6f33a4 /g10/keygen.c | |
parent | * options.h, sign.c (mk_notation_policy_etc), gpg.c (add_notation_data): (diff) | |
download | gnupg-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 'g10/keygen.c')
-rw-r--r-- | g10/keygen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index ba7616bf3..0ef2499b6 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -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; |