Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b4cb9693
Commit
b4cb9693
authored
May 02, 2018
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify o5.vtc
parent
ced282f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
o00005.vtc
bin/varnishtest/tests/o00005.vtc
+8
-16
No files found.
bin/varnishtest/tests/o00005.vtc
View file @
b4cb9693
...
...
@@ -9,18 +9,10 @@ varnish v1 -proto "PROXY" -vcl+backend {
import proxy;
sub vcl_deliver {
if (proxy.is_ssl()) {
set resp.http.is_ssl = "yes";
}
if (!proxy.client_has_cert_sess()) {
set resp.http.client_has_cert_sess = "no";
}
if (!proxy.client_has_cert_conn()) {
set resp.http.client_has_cert_conn = "no";
}
if (proxy.ssl_verify_result() == 0) {
set resp.http.verify = "ok";
}
set resp.http.is_ssl = proxy.is_ssl();
set resp.http.client_has_cert_sess = proxy.client_has_cert_sess();
set resp.http.client_has_cert_conn = proxy.client_has_cert_conn();
set resp.http.ssl_verify_result = proxy.ssl_verify_result() == 0;
set resp.http.alpn = proxy.alpn();
set resp.http.authority = proxy.authority();
set resp.http.ssl-version = proxy.ssl_version();
...
...
@@ -60,10 +52,10 @@ client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.http.is_ssl ==
yes
expect resp.http.client_has_cert_sess ==
no
expect resp.http.client_has_cert_conn ==
no
expect resp.http.
verify == ok
expect resp.http.is_ssl ==
true
expect resp.http.client_has_cert_sess ==
false
expect resp.http.client_has_cert_conn ==
false
expect resp.http.
ssl_verify_result == true
expect resp.http.alpn == h2
expect resp.http.authority == hocdet.net
expect resp.http.ssl-version == TLSv1.3
...
...
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