mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-25 15:27:03 +01:00
Do not include v3 keys in a --export-secret-subkeys export.
This commit is contained in:
parent
8ed6d59a6c
commit
20dda47d6c
@ -1,5 +1,8 @@
|
|||||||
2002-02-27 David Shaw <dshaw@jabberwocky.com>
|
2002-02-27 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* export.c (do_export_stream): Do not include v3 keys in a
|
||||||
|
--export-secret-subkeys export.
|
||||||
|
|
||||||
* getkey.c (merge_selfsigs_main): If a key isn't valid (say,
|
* getkey.c (merge_selfsigs_main): If a key isn't valid (say,
|
||||||
because of no self-signature), allow --always-trust to force it
|
because of no self-signature), allow --always-trust to force it
|
||||||
valid so it can be trusted.
|
valid so it can be trusted.
|
||||||
|
@ -183,6 +183,14 @@ do_export_stream( IOBUF out, STRLIST users, int secret, int onlyrfc, int *any )
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* no v3 keys with GNU mode 1001 */
|
||||||
|
if( secret == 2 && node->pkt->pkt.secret_key->version == 3 )
|
||||||
|
{
|
||||||
|
log_info(_("key %08lX: PGP 2.x style key - skipped\n"),
|
||||||
|
(ulong)keyid_from_sk( node->pkt->pkt.secret_key, NULL) );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* and write it */
|
/* and write it */
|
||||||
for( kbctx=NULL; (node = walk_kbnode( keyblock, &kbctx, 0 )); ) {
|
for( kbctx=NULL; (node = walk_kbnode( keyblock, &kbctx, 0 )); ) {
|
||||||
/* don't export any comment packets but those in the
|
/* don't export any comment packets but those in the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user