diff options
author | David Shaw <[email protected]> | 2005-10-14 04:07:13 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-10-14 04:07:13 +0000 |
commit | 6c4e740a59d9fd6db5cafbda2740b328aea0675d (patch) | |
tree | 3da0e67782040962ed5a0733102b3da74f32210b /g10/getkey.c | |
parent | * options.h, getkey.c (merge_selfsigs_subkey), gpg.c (main), sig-check.c (diff) | |
download | gnupg-6c4e740a59d9fd6db5cafbda2740b328aea0675d.tar.gz gnupg-6c4e740a59d9fd6db5cafbda2740b328aea0675d.zip |
* keyedit.c (keyedit_menu, menu_backsign): New "backsign" command to
add 0x19 backsigs to old keys that don't have them.
* misc.c (parse_options): Fix build warning.
* main.h, keygen.c (make_backsig): Make public.
Diffstat (limited to '')
-rw-r--r-- | g10/getkey.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index 241f1535c..2dde1bb51 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -2049,6 +2049,8 @@ merge_selfsigs_subkey( KBNODE keyblock, KBNODE subnode ) int seq=0; size_t n; + /* We do this while() since there may be other embedded + signatures in the future. We only want 0x19 here. */ while((p=enum_sig_subpkt(sig->hashed, SIGSUBPKT_SIGNATURE,&n,&seq,NULL))) if(n>3 && ((p[0]==3 && p[2]==0x19) || (p[0]==4 && p[1]==0x19))) @@ -2058,7 +2060,8 @@ merge_selfsigs_subkey( KBNODE keyblock, KBNODE subnode ) { seq=0; /* It is safe to have this in the unhashed area since the - 0x19 is located here for convenience, not security. */ + 0x19 is located on the selfsig for convenience, not + security. */ while((p=enum_sig_subpkt(sig->unhashed,SIGSUBPKT_SIGNATURE, &n,&seq,NULL))) if(n>3 && ((p[0]==3 && p[2]==0x19) || (p[0]==4 && p[1]==0x19))) |