1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-09 23:39:51 +02:00
gnupg/include
Werner Koch 27d0f32f77 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.
(cherry picked from commit 4bde12206c)
(cherry picked from commit 0a805ed160)

Resolved conflicts:
	include/cipher.h
2013-10-04 20:53:51 +02:00
..
_regex.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
ChangeLog-2011 Rename all ChangeLog files to ChangeLog-2011. 2011-12-02 19:42:56 +01:00
cipher.h gpg: Distinguish between missing and cleared key flags. 2013-10-04 20:53:51 +02:00
compat.h Restructured the compat functions and changed its license. 2009-08-25 20:00:24 +00:00
distfiles Distribute dotlock.h 2012-01-11 01:23:59 -05:00
dotlock.h gpg: signal handling fix 2013-07-12 17:26:55 +09:00
dynload.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
errors.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
estream-printf.h First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
host2net.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
http.h Remove trailing white space from some files 2012-12-19 14:05:56 +01:00
i18n.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
iobuf.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
keyserver.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
memory.h First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
mpi.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
srv.h * srv.h: Move to include/srv.h. 2009-04-06 03:18:07 +00:00
ttyio.h Minor changes to help the VMS port 2010-09-28 10:07:30 +00:00
types.h Handle systems which have uint64_t but not the UINT64_C macro. 2012-11-06 17:55:31 +01:00
util.h Add meta option ignore-invalid-option. 2012-12-18 18:26:56 +01:00
zlib-riscos.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00