* export.c (do_export_stream): Allow reset-subkey-passwd along

with sexp-format.
This commit is contained in:
Werner Koch 2007-02-14 16:26:05 +00:00
parent 5e34f91852
commit b46c93fb10
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-06 Werner Koch <wk@g10code.com>
* export.c (do_export_stream): Allow reset-subkey-passwd along
with sexp-format.
2007-02-04 Werner Koch <wk@g10code.com>
* parse-packet.c (parse_signature): Limit bytes read for an

View File

@ -564,7 +564,10 @@ do_export_stream( IOBUF out, strlist_t users, int secret,
goto leave;
}
rc = build_packet (out, node->pkt);
if ((options&EXPORT_SEXP_FORMAT))
rc = build_sexp (out, node->pkt, &indent);
else
rc = build_packet (out, node->pkt);
node->pkt->pkt.secret_key = sk_save;
free_secret_key (sk);