mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Remove PGP6 compliance mode.
* g10/gpg.c: Make --pgp6 an alias for --pgp7. * common/compliance.h (gnupg_compliance_mode): Remove CO_PGP6. * g10/options.h (PGP6): Remove. Adjust all users. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a042799c86
commit
b2c05d6912
10 changed files with 25 additions and 54 deletions
|
@ -3474,7 +3474,7 @@ merge_selfsigs (ctrl_t ctrl, kbnode_t keyblock)
|
|||
*
|
||||
* In case the primary key is not required, select a suitable subkey.
|
||||
* We need the primary key if PUBKEY_USAGE_CERT is set in REQ_USAGE or
|
||||
* we are in PGP6 or PGP7 mode and PUBKEY_USAGE_SIG is set in
|
||||
* we are in PGP7 mode and PUBKEY_USAGE_SIG is set in
|
||||
* REQ_USAGE.
|
||||
*
|
||||
* If any of PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC and PUBKEY_USAGE_CERT
|
||||
|
@ -3536,10 +3536,10 @@ finish_lookup (kbnode_t keyblock, unsigned int req_usage, int want_exact,
|
|||
req_usage &= USAGE_MASK;
|
||||
|
||||
/* Request the primary if we're certifying another key, and also if
|
||||
* signing data while --pgp6 or --pgp7 is on since pgp 6 and 7 do
|
||||
* signing data while --pgp7 is on since pgp 7 do
|
||||
* not understand signatures made by a signing subkey. PGP 8 does. */
|
||||
req_prim = ((req_usage & PUBKEY_USAGE_CERT)
|
||||
|| ((PGP6 || PGP7) && (req_usage & PUBKEY_USAGE_SIG)));
|
||||
|| (PGP7 && (req_usage & PUBKEY_USAGE_SIG)));
|
||||
|
||||
|
||||
log_assert (keyblock->pkt->pkttype == PKT_PUBLIC_KEY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue