core: Apply GPGME_EXPORT_MODE_NOUID also to keyserver exports.
authorWerner Koch <wk@gnupg.org>
Fri, 5 Oct 2018 13:16:53 +0000 (15:16 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 5 Oct 2018 13:16:53 +0000 (15:16 +0200)
* src/engine-gpg.c (export_common): Add keyserver-options to the
send-keys commands.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-gpg.c

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