Commit 936b7ef3 authored by Geoff Simmons's avatar Geoff Simmons

Log the key id, record size and chunk size on decryption.

parent 7f269ee9
......@@ -424,6 +424,8 @@ decrypt_init(struct vfp_ctx *ctx, struct ece *ece)
uint8_t idlen;
CHECK_OBJ_NOTNULL(ctx, VFP_CTX_MAGIC);
CHECK_OBJ_NOTNULL(ctx->wrk, WORKER_MAGIC);
AN(ctx->wrk->vsl);
CHECK_OBJ_NOTNULL(ece, ECE_MAGIC);
CHECK_OBJ_NOTNULL(ece->crypto, ECE_CRYPTO_MAGIC);
CHECK_OBJ_NOTNULL(ece->hdr, ECE_HDRBUF_MAGIC);
......@@ -511,6 +513,12 @@ decrypt_init(struct vfp_ctx *ctx, struct ece *ece)
ece->stream->rec_next = ece->stream->rec_buf;
AZ(ece->stream->rec_avail);
VSLb(ctx->wrk->vsl, SLT_Debug, "ece_decrypt: id \"%.*s\"", idlen,
hdr->hdr + HDR_PFX_LEN);
VSLb(ctx->wrk->vsl, SLT_Debug, "ece_decrypt: record size %u", ece->rs);
VSLb(ctx->wrk->vsl, SLT_Debug, "ece_decrypt: chunk size %zu",
ece->chunksz);
return (VFP_END);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment