diff options
author | Werner Koch <[email protected]> | 2017-12-13 10:58:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-12-13 11:15:40 +0000 |
commit | b5333e13cbc9db354ed90762190bf70605a02d1f (patch) | |
tree | 30de80defb36727f1a136f4c1831e2b2083fd3f8 | |
parent | indent: Re-indent g10/cipher.c (diff) | |
download | gnupg-b5333e13cbc9db354ed90762190bf70605a02d1f.tar.gz gnupg-b5333e13cbc9db354ed90762190bf70605a02d1f.zip |
gpg: Simplify cipher:write_header.
* g10/cipher.c (write_header): Use write_status_printf.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/cipher.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/g10/cipher.c b/g10/cipher.c index 26779892e..409d0adef 100644 --- a/g10/cipher.c +++ b/g10/cipher.c @@ -65,12 +65,8 @@ write_header (cipher_filter_context_t *cfx, iobuf_t a) gcry_md_debug (cfx->mdc_hash, "creatmdc"); } - { - char buf[20]; - - snprintf (buf, sizeof buf, "%d %d", ed.mdc_method, cfx->dek->algo); - write_status_text (STATUS_BEGIN_ENCRYPTION, buf); - } + write_status_printf (STATUS_BEGIN_ENCRYPTION, "%d %d", + ed.mdc_method, cfx->dek->algo); init_packet (&pkt); pkt.pkttype = cfx->dek->use_mdc? PKT_ENCRYPTED_MDC : PKT_ENCRYPTED; |