mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Accept also armored data from the WKD.
* g10/keyserver.c (keyserver_import_wkd): Clear NO_ARMOR. -- We may even adjust the specs to allow that. It should not be a problem for any OpenPGP implementation because armored keys are very common and de-armoring code is de-facto a mandatory feature. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
40595b5793
commit
1b1f649dea
@ -2051,8 +2051,9 @@ keyserver_import_wkd (ctrl_t ctrl, const char *name, int quick,
|
||||
int armor_status = opt.no_armor;
|
||||
import_filter_t save_filt;
|
||||
|
||||
/* Keys returned via WKD are in binary format. */
|
||||
opt.no_armor = 1;
|
||||
/* Keys returned via WKD are in binary format. However, we
|
||||
* relax that requirement and allow also for armored data. */
|
||||
opt.no_armor = 0;
|
||||
save_filt = save_and_clear_import_filter ();
|
||||
if (!save_filt)
|
||||
err = gpg_error_from_syserror ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user