aboutsummaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/export.c')
-rw-r--r--g10/export.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/g10/export.c b/g10/export.c
index d9ca9c089..a8ac6d8cf 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -340,6 +340,21 @@ do_export_stream( IOBUF out, STRLIST users, int secret,
default:
break;
}
+
+ /* XXX: before skipping a subkey, check whether any
+ other description wants an exact macth on a subkey
+ and include that subkey into the output too. Need
+ to add this subkey to a list so that it won't get
+ processed a second time.
+
+ So the first step here is to check that list and
+ skip in any case if the key is in that list.
+
+ We need this whole mess becuase the import fnction
+ is not able to merge secret key and thus it is not
+ possible to output them as two keys and have import
+ merge them.
+ */
if(skip_until_subkey)
continue;