httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1054324 - /httpd/test/framework/trunk/t/ssl/varlookup.t
Date Sat, 01 Jan 2011 23:57:18 GMT
Author: sf
Date: Sat Jan  1 23:57:18 2011
New Revision: 1054324

URL: http://svn.apache.org/viewvc?rev=1054324&view=rev
Log:
correctly handle the changed *_DN format in 2.3.11+

Modified:
    httpd/test/framework/trunk/t/ssl/varlookup.t

Modified: httpd/test/framework/trunk/t/ssl/varlookup.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/ssl/varlookup.t?rev=1054324&r1=1054323&r2=1054324&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/ssl/varlookup.t (original)
+++ httpd/test/framework/trunk/t/ssl/varlookup.t Sat Jan  1 23:57:18 2011
@@ -23,25 +23,30 @@ my $time = localtime();
 #Apache::TestRequest::scheme('https');
 local $vars->{scheme} = 'https';
 my $port = $config->port;
+my $rfc2253 = have_min_apache_version('2.3.11');
 
 my $url = '/test_ssl_var_lookup';
 my(%lookup, @vars);
 
 my %client_dn = dn('client_ok');
 
-my $client_dn = dn_oneline(\%client_dn);
+my $client_dn = dn_oneline(\%client_dn, $rfc2253);
 
 my %client_i_dn = dn('ca');
 
-my $client_i_dn = dn_oneline(\%client_i_dn);
+my $client_i_dn = dn_oneline(\%client_i_dn, $rfc2253);
 
 my %server_dn = dn('server');
-#turn into a pattern match: httpd-test/([-\w]+)
-#so we can test with different server keys/certs
-$server_dn{OU} =~ s:^([-\w]+/)([-\w]+)$:$1([-\\w]+):;
+
+# YYY will be turned into a pattern match: httpd-test/([-\w]+)
+# so we can test with different server keys/certs
+$server_dn{OU} = 'httpd-test/YYY';
 $server_dn{CN} = $vars->{servername};
 
-my $server_dn = dn_oneline(\%server_dn);
+my $server_dn = dn_oneline(\%server_dn, $rfc2253);
+
+$server_dn     =~ s{(httpd-test.*?)YYY}{$1([-\\w]+)};
+$server_dn{OU} =~ s{(httpd-test.*?)YYY}{$1([-\\w]+)};
 
 my %server_i_dn = %client_i_dn;
 my $server_i_dn = $client_i_dn;



Mime
View raw message