mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
* parse-packet.c (parse_signature): Don't give "signature packet without
xxxx" warnings for experimental pk algorithms. An experimental algorithm may not have a notion of (for example) a keyid (i.e. PGP's x.509 stuff).
This commit is contained in:
parent
c7fdd03e1a
commit
1b5d5c7ecb
@ -1,3 +1,10 @@
|
|||||||
|
2003-08-02 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* parse-packet.c (parse_signature): Don't give "signature packet
|
||||||
|
without xxxx" warnings for experimental pk algorithms. An
|
||||||
|
experimental algorithm may not have a notion of (for example) a
|
||||||
|
keyid (i.e. PGP's x.509 stuff).
|
||||||
|
|
||||||
2003-07-31 Stefan Bellon <sbellon@sbellon.de>
|
2003-07-31 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* gpgv.c [read_trust_options]: Removed trailing semicolon to avoid
|
* gpgv.c [read_trust_options]: Removed trailing semicolon to avoid
|
||||||
|
@ -1273,17 +1273,19 @@ parse_signature( IOBUF inp, int pkttype, unsigned long pktlen,
|
|||||||
}
|
}
|
||||||
|
|
||||||
p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_SIG_CREATED, NULL );
|
p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_SIG_CREATED, NULL );
|
||||||
if( !p )
|
if(p)
|
||||||
log_error("signature packet without timestamp\n");
|
sig->timestamp = buffer_to_u32(p);
|
||||||
else
|
else if(!(sig->pubkey_algo>=100 && sig->pubkey_algo<=110))
|
||||||
sig->timestamp = buffer_to_u32(p);
|
log_error("signature packet without timestamp\n");
|
||||||
|
|
||||||
p = parse_sig_subpkt2( sig, SIGSUBPKT_ISSUER, NULL );
|
p = parse_sig_subpkt2( sig, SIGSUBPKT_ISSUER, NULL );
|
||||||
if( !p )
|
if(p)
|
||||||
log_error("signature packet without keyid\n");
|
{
|
||||||
else {
|
|
||||||
sig->keyid[0] = buffer_to_u32(p);
|
sig->keyid[0] = buffer_to_u32(p);
|
||||||
sig->keyid[1] = buffer_to_u32(p+4);
|
sig->keyid[1] = buffer_to_u32(p+4);
|
||||||
}
|
}
|
||||||
|
else if(!(sig->pubkey_algo>=100 && sig->pubkey_algo<=110))
|
||||||
|
log_error("signature packet without keyid\n");
|
||||||
|
|
||||||
p=parse_sig_subpkt(sig->hashed,SIGSUBPKT_SIG_EXPIRE,NULL);
|
p=parse_sig_subpkt(sig->hashed,SIGSUBPKT_SIG_EXPIRE,NULL);
|
||||||
if(p)
|
if(p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user