1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-21 14:47:03 +01:00
Werner Koch db1f74ba53 gpg: Protect against rogue keyservers sending secret keys.
* g10/options.h (IMPORT_NO_SECKEY): New.
* g10/keyserver.c (keyserver_spawn, keyserver_import_cert): Set new
flag.
* g10/import.c (import_secret_one): Deny import if flag is set.
--

By modifying a keyserver or a DNS record to send a secret key, an
attacker could trick a user into signing using a different key and
user id.  The trust model should protect against such rogue keys but
we better make sure that secret keys are never received from remote
sources.

Suggested-by: Stefan Tomanek
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit e7abed3448c1c1a4e756c12f95b665b517d22ebe)

Resolved conflicts:
	g10/import.c
	g10/keyserver.c
2014-03-07 10:14:05 +01:00
..
2011-03-08 12:23:59 +01:00
2014-01-29 15:19:20 +01:00
2013-01-08 09:43:21 +01:00
2014-01-31 14:35:49 +01:00
2007-07-04 19:49:40 +00:00
2013-11-15 15:49:34 +01:00
2013-11-18 14:09:47 +01:00
2013-11-18 14:09:47 +01:00
2013-01-08 09:43:21 +01:00
2008-12-12 08:54:50 +00:00
2013-11-18 14:09:47 +01:00
2013-11-18 14:09:47 +01:00
2014-03-06 16:23:10 +09:00
2014-01-29 17:45:05 +01:00