1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Simplify cipher:write_header.

* g10/cipher.c (write_header): Use write_status_printf.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-12-13 11:58:51 +01:00
parent 067e62fe55
commit b5333e13cb
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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;