Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-ece
Commits
936b7ef3
Commit
936b7ef3
authored
Sep 17, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log the key id, record size and chunk size on decryption.
parent
7f269ee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vfp.c
src/vfp.c
+8
-0
No files found.
src/vfp.c
View file @
936b7ef3
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment