diff options
author | Werner Koch <wk@gnupg.org> | 1998-06-09 17:14:06 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-06-09 17:14:06 +0200 |
commit | 1ece02aa54afb9a0e51e916098373beda317f070 (patch) | |
tree | 72d56d5bd9feae8540d8bf1d2510ea08fdd58c97 /g10/sig-check.c | |
parent | add a challenge (diff) | |
download | gnupg2-1ece02aa54afb9a0e51e916098373beda317f070.tar.xz gnupg2-1ece02aa54afb9a0e51e916098373beda317f070.zip |
Sicherung
Diffstat (limited to 'g10/sig-check.c')
-rw-r--r-- | g10/sig-check.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c index a30d0efcc..6dc660916 100644 --- a/g10/sig-check.c +++ b/g10/sig-check.c @@ -319,38 +319,6 @@ check_key_signature( KBNODE root, KBNODE node, int *is_selfsig ) rc = G10ERR_SIG_CLASS; } } - else if( sig->sig_class >= 0x14 && sig->sig_class <= 0x17 ) { - /* a gnupg extension: calculate the signature over all - * preceding userids */ - KBNODE unode = find_prev_kbnode( root, node, PKT_USER_ID ); - u32 keyid[2]; - int any = 0; - - keyid_from_pkc( pkc, keyid ); - md = md_open( algo, 0 ); - hash_public_cert( md, pkc ); - - for( unode=root->next; unode && unode != node; unode = unode->next ) { - if( unode->pkt->pkttype == PKT_USER_ID ) { - hash_uid_node( unode, md, sig ); - any++; - } - } - if( any ) { - if( keyid[0] == sig->keyid[0] && keyid[1] == sig->keyid[1] ) { - if( is_selfsig ) - *is_selfsig = 1; - rc = do_check( pkc, sig, md ); - } - else - rc = signature_check( sig, md ); - } - else { - log_error("no user id for key signature packet\n"); - rc = G10ERR_SIG_CLASS; - } - md_close(md); - } else { KBNODE unode = find_prev_kbnode( root, node, PKT_USER_ID ); |