diff options
Diffstat (limited to 'g10/export.c')
-rw-r--r-- | g10/export.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/g10/export.c b/g10/export.c index 46413fff2..637f675f4 100644 --- a/g10/export.c +++ b/g10/export.c @@ -128,6 +128,15 @@ do_export( STRLIST users, int secret ) * secret keyring */ if( !secret && node->pkt->pkttype == PKT_COMMENT ) continue; + /* do not export packets which are marked as not exportable */ + if( node->pkt->pkttype == PKT_SIGNATURE ) { + const char *p; + p = parse_sig_subpkt2( node->pkt->pkt.signature, + SIGSUBPKT_EXPORTABLE, NULL ); + if( p && !*p ) + continue; /* not exportable */ + } + if( (rc = build_packet( out, node->pkt )) ) { log_error("build_packet(%d) failed: %s\n", node->pkt->pkttype, g10_errstr(rc) ); |