diff options
Diffstat (limited to 'g10/export.c')
-rw-r--r-- | g10/export.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/export.c b/g10/export.c index 78def573d..a4514ae38 100644 --- a/g10/export.c +++ b/g10/export.c @@ -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); |