From 4f8b937a142814d2737efb5cc818463eebfcdb12 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Tue, 25 Sep 2007 20:09:28 -0400 Subject: [PATCH] Changed the PROGRESS status message to either ENCRYPT or DECRYPT. --- src/commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands.c b/src/commands.c index 89b7255d..f4d917b8 100644 --- a/src/commands.c +++ b/src/commands.c @@ -618,7 +618,7 @@ gpg_error_t do_xml_encrypt(struct client_s *client, gcry_cipher_hd_t gh, while (iter > 0) { if (client && iter_progress > 0 && iter_progress <= iter) { if (!(iter % iter_progress)) - assuan_write_status(client->ctx, "PROGRESS", print_fmt("%i", + assuan_write_status(client->ctx, "ENCRYPT", print_fmt("%i", ++n_iter * iter_progress)); } @@ -660,7 +660,7 @@ gpg_error_t do_xml_encrypt(struct client_s *client, gcry_cipher_hd_t gh, if (client && iter_progress && file_header.iter >= iter_progress) { if ((file_header.iter % iter_progress)) - assuan_write_status(client->ctx, "PROGRESS", + assuan_write_status(client->ctx, "ENCRYPT", print_fmt("%i", file_header.iter)); } @@ -2285,7 +2285,7 @@ gpg_error_t try_xml_decrypt(assuan_context_t ctx, gint fd, struct stat st, while (iter > 0) { if (ctx && iter_progress > 0 && iter >= iter_progress) { if (!(iter % iter_progress)) - assuan_write_status(ctx, "PROGRESS", print_fmt("%i", + assuan_write_status(ctx, "DECRYPT", print_fmt("%i", ++n_iter * iter_progress)); } @@ -2320,7 +2320,7 @@ gpg_error_t try_xml_decrypt(assuan_context_t ctx, gint fd, struct stat st, if (ctx && iter_progress && file_header.iter >= iter_progress) { if ((file_header.iter % iter_progress)) - assuan_write_status(ctx, "PROGRESS", print_fmt("%i", file_header.iter)); + assuan_write_status(ctx, "DECRYPT", print_fmt("%i", file_header.iter)); } gcry_free(iv); -- 2.11.4.GIT