Commit b4cb9693 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Simplify o5.vtc

parent ced282f1
...@@ -9,18 +9,10 @@ varnish v1 -proto "PROXY" -vcl+backend { ...@@ -9,18 +9,10 @@ varnish v1 -proto "PROXY" -vcl+backend {
import proxy; import proxy;
sub vcl_deliver { sub vcl_deliver {
if (proxy.is_ssl()) { set resp.http.is_ssl = proxy.is_ssl();
set resp.http.is_ssl = "yes"; set resp.http.client_has_cert_sess = proxy.client_has_cert_sess();
} set resp.http.client_has_cert_conn = proxy.client_has_cert_conn();
if (!proxy.client_has_cert_sess()) { set resp.http.ssl_verify_result = proxy.ssl_verify_result() == 0;
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.alpn = proxy.alpn(); set resp.http.alpn = proxy.alpn();
set resp.http.authority = proxy.authority(); set resp.http.authority = proxy.authority();
set resp.http.ssl-version = proxy.ssl_version(); set resp.http.ssl-version = proxy.ssl_version();
...@@ -60,10 +52,10 @@ client c1 { ...@@ -60,10 +52,10 @@ client c1 {
txreq txreq
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.http.is_ssl == yes expect resp.http.is_ssl == true
expect resp.http.client_has_cert_sess == no expect resp.http.client_has_cert_sess == false
expect resp.http.client_has_cert_conn == no expect resp.http.client_has_cert_conn == false
expect resp.http.verify == ok expect resp.http.ssl_verify_result == true
expect resp.http.alpn == h2 expect resp.http.alpn == h2
expect resp.http.authority == hocdet.net expect resp.http.authority == hocdet.net
expect resp.http.ssl-version == TLSv1.3 expect resp.http.ssl-version == TLSv1.3
......
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