Home GnuPG
Diffusion GnuPG 4bde12206c5b

gpg: Distinguish between missing and cleared key flags.
4bde12206c5bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Distinguish between missing and cleared key flags.

* include/cipher.h (PUBKEY_USAGE_NONE): New.
* g10/getkey.c (parse_key_usage): Set new flag.

We do not want to use the default capabilities (derived from the
algorithm) if any key flags are given in a signature. Thus if key
flags are used in any way, the default key capabilities are never
used.

This allows to create a key with key flags set to all zero so it can't
be used. This better reflects common sense.

Details

Provenance
wernerAuthored on Mar 15 2013, 3:46 PM
Parents
rG76dc5c08dc26: scd: ccid-driver supporting larger APDU.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4bde12206c5b: gpg: Distinguish between missing and cleared key flags. (authored by Werner Koch <wk@gnupg.org>).Mar 19 2013, 5:26 PM