You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2015/10/12 15:12:06 UTC

svn commit: r1708106 - in /httpd/test/framework/trunk/t: htdocs/modules/h2/hello.pl modules/http2.t

Author: icing
Date: Mon Oct 12 13:12:06 2015
New Revision: 1708106

URL: http://svn.apache.org/viewvc?rev=1708106&view=rev
Log:
changed SSL var test to be immune to protocol version used

Modified:
    httpd/test/framework/trunk/t/htdocs/modules/h2/hello.pl
    httpd/test/framework/trunk/t/modules/http2.t

Modified: httpd/test/framework/trunk/t/htdocs/modules/h2/hello.pl
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/h2/hello.pl?rev=1708106&r1=1708105&r2=1708106&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/h2/hello.pl (original)
+++ httpd/test/framework/trunk/t/htdocs/modules/h2/hello.pl Mon Oct 12 13:12:06 2015
@@ -5,10 +5,10 @@ use Env;
 print "Content-Type: text/html\n";
 print "\n";
 
-my $ssl_protocol = $ENV{'SSL_PROTOCOL'};
+my $ssl_protocol = $ENV{'SSL_TLS_SNI'};
 print <<EOF
 <html><body>
 <h2>Hello World!</h2>
-SSL_PROTOCOL="$ssl_protocol"
+TLS_SNI="$ssl_protocol"
 </body></html>
 EOF

Modified: httpd/test/framework/trunk/t/modules/http2.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/http2.t?rev=1708106&r1=1708105&r2=1708106&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/http2.t (original)
+++ httpd/test/framework/trunk/t/modules/http2.t Mon Oct 12 13:12:06 2015
@@ -264,11 +264,11 @@ sub do_suite {
         skip "skipping test as mod_rewrite not available" foreach(1..2);
     }
     if (have_cgi) {
-        my $ssl_protocol = $true_tls? 'TLSv1.2' : '';
+        my $sni_host = $true_tls? 'localhost' : '';
         my $content = <<EOF;
 <html><body>
 <h2>Hello World!</h2>
-SSL_PROTOCOL="$ssl_protocol"
+TLS_SNI="$sni_host"
 </body></html>
 EOF
         add_request(