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
3c47fcb5
Commit
3c47fcb5
authored
Sep 17, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test more decryption corner cases.
parent
0f45dfeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
decrypt.vtc
src/tests/decrypt.vtc
+27
-0
No files found.
src/tests/decrypt.vtc
View file @
3c47fcb5
...
@@ -80,6 +80,14 @@ server s1 {
...
@@ -80,6 +80,14 @@ server s1 {
-hdr "Content-Length: 21"
-hdr "Content-Length: 21"
sendhex "23 50 6c c6 d1 6d b6 5b f7 bb f3 a8 f7 8c 67 9b"
sendhex "23 50 6c c6 d1 6d b6 5b f7 bb f3 a8 f7 8c 67 9b"
sendhex "00 00 10 00 00"
sendhex "00 00 10 00 00"
# No Content-Encoding header, VFP decrypt bypassed.
rxreq
txresp -body {foo bar baz quux}
# Content-Encoding header is not aes128gcm, VFP decrypt bypassed.
rxreq
txresp -gzipbody {foo bar baz quux}
} -start
} -start
logexpect l1 -v v1 -d 0 -g vxid -q "VfpAcct" {
logexpect l1 -v v1 -d 0 -g vxid -q "VfpAcct" {
...
@@ -88,6 +96,14 @@ logexpect l1 -v v1 -d 0 -g vxid -q "VfpAcct" {
...
@@ -88,6 +96,14 @@ logexpect l1 -v v1 -d 0 -g vxid -q "VfpAcct" {
expect 0 = Debug {^ece_decrypt: record size 4096$}
expect 0 = Debug {^ece_decrypt: record size 4096$}
expect * = VfpAcct {^ece_decrypt \d+ 0$}
expect * = VfpAcct {^ece_decrypt \d+ 0$}
expect * = End
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^ece_decrypt 0 0$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^ece_decrypt 0 0$}
expect * = End
} -start
} -start
client c1 {
client c1 {
...
@@ -96,6 +112,17 @@ client c1 {
...
@@ -96,6 +112,17 @@ client c1 {
expect resp.status == 200
expect resp.status == 200
expect resp.http.Content-Encoding == <undef>
expect resp.http.Content-Encoding == <undef>
expect resp.bodylen == 0
expect resp.bodylen == 0
txreq
rxresp
expect resp.status == 200
expect resp.http.Content-Encoding == <undef>
expect resp.body == {foo bar baz quux}
txreq
rxresp
expect resp.status == 200
expect resp.http.Content-Encoding == gzip
} -run
} -run
logexpect l1 -wait
logexpect l1 -wait
...
...
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