mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +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");
|
gcry_md_debug (cfx->mdc_hash, "creatmdc");
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
write_status_printf (STATUS_BEGIN_ENCRYPTION, "%d %d",
|
||||||
char buf[20];
|
ed.mdc_method, cfx->dek->algo);
|
||||||
|
|
||||||
snprintf (buf, sizeof buf, "%d %d", ed.mdc_method, cfx->dek->algo);
|
|
||||||
write_status_text (STATUS_BEGIN_ENCRYPTION, buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
init_packet (&pkt);
|
init_packet (&pkt);
|
||||||
pkt.pkttype = cfx->dek->use_mdc? PKT_ENCRYPTED_MDC : PKT_ENCRYPTED;
|
pkt.pkttype = cfx->dek->use_mdc? PKT_ENCRYPTED_MDC : PKT_ENCRYPTED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user