diff options
Diffstat (limited to 'g10/export.c')
-rw-r--r-- | g10/export.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/g10/export.c b/g10/export.c index 5cbe58180..396bc2780 100644 --- a/g10/export.c +++ b/g10/export.c @@ -126,8 +126,6 @@ parse_export_options(char *str,unsigned int *options,int noisy) N_("remove unusable parts from key during export")}, {"export-minimal",EXPORT_MINIMAL|EXPORT_CLEAN,NULL, N_("remove as much as possible from key during export")}, - {"export-drop-uids", EXPORT_DROP_UIDS, NULL, - N_("Do not export user id or attribute packets")}, {"export-pka", EXPORT_PKA_FORMAT, NULL, NULL }, {"export-dane", EXPORT_DANE_FORMAT, NULL, NULL }, @@ -161,9 +159,7 @@ parse_export_options(char *str,unsigned int *options,int noisy) *options &= ~(EXPORT_CLEAN | EXPORT_MINIMAL | EXPORT_PKA_FORMAT | EXPORT_DANE_FORMAT); } - /* Dropping uids also means to drop attributes. */ - if ((*options & EXPORT_DROP_UIDS)) - *options &= ~(EXPORT_ATTRIBUTES); + return rc; } @@ -1718,19 +1714,6 @@ do_export_one_keyblock (ctrl_t ctrl, kbnode_t keyblock, u32 *keyid, } } - /* Don't export user ids (and attributes)? This is not RFC-4880 - * compliant but we allow it anyway. */ - if ((options & EXPORT_DROP_UIDS) - && node->pkt->pkttype == PKT_USER_ID) - { - /* Skip until we get to something that is not a user id (or - * attrib) or a signature on it. */ - while (kbctx->next && kbctx->next->pkt->pkttype == PKT_SIGNATURE) - kbctx = kbctx->next; - - continue; - } - /* Don't export attribs? */ if (!(options & EXPORT_ATTRIBUTES) && node->pkt->pkttype == PKT_USER_ID |