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:
parent
067e62fe55
commit
b5333e13cb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user