core: Apply GPGME_EXPORT_MODE_NOUID also to keyserver exports.

* src/engine-gpg.c (export_common): Add keyserver-options to the
send-keys commands.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2018-10-05 15:16:53 +02:00
parent ecfa48fffa
commit 913601f487
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -2255,6 +2255,8 @@ export_common (engine_gpg_t gpg, gpgme_export_mode_t mode,
else if ((mode & GPGME_EXPORT_MODE_EXTERN)) else if ((mode & GPGME_EXPORT_MODE_EXTERN))
{ {
err = add_arg (gpg, "--send-keys"); err = add_arg (gpg, "--send-keys");
if (!err && (mode & GPGME_EXPORT_MODE_NOUID))
err = add_arg (gpg, "--keyserver-options=export-drop-uids");
} }
else else
{ {