diff options
author | Werner Koch <wk@gnupg.org> | 1998-10-16 18:00:17 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-10-16 18:00:17 +0200 |
commit | e81e0970f7ab6c815f3396168d47fc6ab57fdf30 (patch) | |
tree | 175aa8c360560b30cf500a91eb72b34e16bdedc4 /g10/export.c | |
parent | backup (diff) | |
download | gnupg2-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.tar.xz gnupg2-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.zip |
last local commit
Diffstat (limited to 'g10/export.c')
-rw-r--r-- | g10/export.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/g10/export.c b/g10/export.c index 301cb5ece..46413fff2 100644 --- a/g10/export.c +++ b/g10/export.c @@ -124,24 +124,10 @@ do_export( STRLIST users, int secret ) /* and write it */ for( kbctx=NULL; (node = walk_kbnode( keyblock, &kbctx, 0 )); ) { - if( opt.do_not_export_rsa ) { - int algo; - switch( node->pkt->pkttype ) { - /* note: we canī do this for subkeys here */ - case PKT_PUBLIC_KEY: - algo = node->pkt->pkt.public_key->pubkey_algo; - break; - case PKT_SECRET_KEY: - algo = node->pkt->pkt.secret_key->pubkey_algo; - break; - case PKT_SIGNATURE: - algo = node->pkt->pkt.signature->pubkey_algo; - break; - default: algo = 0; - } - if( is_RSA(algo) ) - continue; - } + /* don't export any comment packets but those in the + * secret keyring */ + if( !secret && node->pkt->pkttype == PKT_COMMENT ) + continue; if( (rc = build_packet( out, node->pkt )) ) { log_error("build_packet(%d) failed: %s\n", node->pkt->pkttype, g10_errstr(rc) ); |