aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine-gpg.c9
-rw-r--r--src/export.c1
-rw-r--r--src/gpgme.h.in1
3 files changed, 10 insertions, 1 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c
index be78957f..9a5927cc 100644
--- a/src/engine-gpg.c
+++ b/src/engine-gpg.c
@@ -2241,7 +2241,14 @@ export_common (engine_gpg_t gpg, gpgme_export_mode_t mode,
return gpg_error (GPG_ERR_NOT_SUPPORTED);
if ((mode & GPGME_EXPORT_MODE_MINIMAL))
- err = add_arg (gpg, "--export-options=export-minimal");
+ {
+ if ((mode & GPGME_EXPORT_MODE_NOUID))
+ err = add_arg (gpg, "--export-options=export-minimal,export-drop-uids");
+ else
+ err = add_arg (gpg, "--export-options=export-minimal");
+ }
+ else if ((mode & GPGME_EXPORT_MODE_NOUID))
+ err = add_arg (gpg, "--export-options=export-drop-uids");
if (err)
;
diff --git a/src/export.c b/src/export.c
index cd94050d..f460e853 100644
--- a/src/export.c
+++ b/src/export.c
@@ -123,6 +123,7 @@ export_start (gpgme_ctx_t ctx, int synchronous, const char *pattern,
|GPGME_EXPORT_MODE_MINIMAL
|GPGME_EXPORT_MODE_SECRET
|GPGME_EXPORT_MODE_RAW
+ |GPGME_EXPORT_MODE_NOUID
|GPGME_EXPORT_MODE_PKCS12)))
return gpg_error (GPG_ERR_INV_VALUE); /* Invalid flags in MODE. */
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 9c9ea5af..17315939 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -405,6 +405,7 @@ gpgme_pinentry_mode_t;
#define GPGME_EXPORT_MODE_SECRET 16
#define GPGME_EXPORT_MODE_RAW 32
#define GPGME_EXPORT_MODE_PKCS12 64
+#define GPGME_EXPORT_MODE_NOUID 128
typedef unsigned int gpgme_export_mode_t;