1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* sig-check.c (signature_check2): Print the backsig warning when there

is no backsig present.  Give a URL for more information.

* keyedit.c (menu_backsign): Small tweak to work properly with keys
originally generated with older GnuPGs that included comments in the
secret keys.
This commit is contained in:
David Shaw 2006-03-12 15:33:57 +00:00
parent 48773e4c15
commit 7e3ba27aef
3 changed files with 20 additions and 8 deletions

View file

@ -3699,9 +3699,10 @@ menu_backsign(KBNODE pub_keyblock,KBNODE sec_keyblock)
keys), so we just pick the selfsig with the right class.
This is what menu_expire does as well. */
for(node2=node2->next;
node2 && node2->pkt->pkttype==PKT_SIGNATURE;
node2 && node2->pkt->pkttype!=PKT_SECRET_SUBKEY;
node2=node2->next)
if(node2->pkt->pkt.signature->version>=4
if(node2->pkt->pkttype==PKT_SIGNATURE
&& node2->pkt->pkt.signature->version>=4
&& node2->pkt->pkt.signature->keyid[0]==sig_pk->pkt->pkt.signature->keyid[0]
&& node2->pkt->pkt.signature->keyid[1]==sig_pk->pkt->pkt.signature->keyid[1]
&& node2->pkt->pkt.signature->sig_class==sig_pk->pkt->pkt.signature->sig_class)