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

Only check preferences against keys with v4 self sigs as v3 sigs have no

prefs
Only put in the fake IDEA preference with --pgp2 mode
Print "Expired" for expired but good signatures.
This commit is contained in:
David Shaw 2002-01-24 23:54:36 +00:00
parent 1cad77d9b4
commit a6f19f40d9
4 changed files with 26 additions and 15 deletions

View file

@ -967,11 +967,14 @@ select_algo_from_prefs( PK_LIST pk_list, int preftype )
memset( mask, 0, 8 * sizeof *mask );
if( preftype == PREFTYPE_SYM ) {
if( pkr->pk->version < 4 && pkr->pk->selfsigversion < 4 )
if( pkr->pk->version < 4 &&
pkr->pk->selfsigversion < 4 &&
opt.pgp2 )
mask[0] |= (1<<1); /* IDEA is implicitly there for v3 keys
with v3 selfsigs (rfc2440:12.1).
This doesn't mean it's actually
available, of course. */
with v3 selfsigs (rfc2440:12.1) if
--pgp2 mode is on. This doesn't
mean it's actually available, of
course. */
else
mask[0] |= (1<<2); /* 3DES is implicitly there for everyone else */
}