@@ -73,7 +73,7 @@ fn no_name_constraints() {
7373 ca,
7474 & [ "dns.example.com" ] ,
7575 & [ "subject.example.com" ] ,
76- & [ "DnsName(\" dns.example.com\" )" , "DirectoryName" ]
76+ & [ "DnsName(\" dns.example.com\" )" ]
7777 ) ,
7878 Ok ( ( ) )
7979 ) ;
@@ -91,8 +91,7 @@ fn additional_dns_labels() {
9191 & [ "subject.example.com" ] ,
9292 & [
9393 "DnsName(\" host1.example.com\" )" ,
94- "DnsName(\" host2.example.com\" )" ,
95- "DirectoryName"
94+ "DnsName(\" host2.example.com\" )"
9695 ]
9796 ) ,
9897 Ok ( ( ) )
@@ -114,7 +113,7 @@ fn allow_subject_common_name() {
114113 let ee = include_bytes ! ( "tls_server_certs/allow_subject_common_name.ee.der" ) ;
115114 let ca = include_bytes ! ( "tls_server_certs/allow_subject_common_name.ca.der" ) ;
116115 assert_eq ! (
117- check_cert( ee, ca, & [ ] , & [ "allowed.example.com" ] , & [ "DirectoryName" ] ) ,
116+ check_cert( ee, ca, & [ ] , & [ "allowed.example.com" ] , & [ ] ) ,
118117 Ok ( ( ) )
119118 ) ;
120119}
@@ -129,7 +128,7 @@ fn allow_dns_san() {
129128 ca,
130129 & [ "allowed.example.com" ] ,
131130 & [ ] ,
132- & [ "DnsName(\" allowed.example.com\" )" , "DirectoryName" ]
131+ & [ "DnsName(\" allowed.example.com\" )" ]
133132 ) ,
134133 Ok ( ( ) )
135134 ) ;
@@ -145,7 +144,7 @@ fn allow_dns_san_and_subject_common_name() {
145144 ca,
146145 & [ "allowed-san.example.com" ] ,
147146 & [ "allowed-cn.example.com" ] ,
148- & [ "DnsName(\" allowed-san.example.com\" )" , "DirectoryName" ]
147+ & [ "DnsName(\" allowed-san.example.com\" )" ]
149148 ) ,
150149 Ok ( ( ) )
151150 ) ;
@@ -207,7 +206,7 @@ fn we_ignore_constraints_on_names_that_do_not_appear_in_cert() {
207206 ca,
208207 & [ "notexample.com" ] ,
209208 & [ "example.com" ] ,
210- & [ "DnsName(\" notexample.com\" )" , "DirectoryName" ]
209+ & [ "DnsName(\" notexample.com\" )" ]
211210 ) ,
212211 Ok ( ( ) )
213212 ) ;
@@ -223,7 +222,7 @@ fn wildcard_san_accepted_if_in_subtree() {
223222 ca,
224223 & [ "bob.example.com" , "jane.example.com" ] ,
225224 & [ "example.com" , "uh.oh.example.com" ] ,
226- & [ "DnsName(\" *.example.com\" )" , "DirectoryName" ]
225+ & [ "DnsName(\" *.example.com\" )" ]
227226 ) ,
228227 Ok ( ( ) )
229228 ) ;
@@ -399,8 +398,7 @@ fn invalid_dns_name_matching() {
399398 & [ ] ,
400399 & [
401400 "DnsName(\" {invalid}.example.com\" )" ,
402- "DnsName(\" dns.example.com\" )" ,
403- "DirectoryName"
401+ "DnsName(\" dns.example.com\" )"
404402 ]
405403 ) ,
406404 Ok ( ( ) )
0 commit comments