We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no_subject_alt_names
1 parent 8d60950 commit 2350c2eCopy full SHA for 2350c2e
tests/integration.rs
@@ -334,16 +334,7 @@ fn wildcard_subject_alternative_names() {
334
#[cfg(feature = "alloc")]
335
#[test]
336
fn no_subject_alt_names() {
337
- let ee = CertificateDer::from(&include_bytes!("misc/no_subject_alternative_name.der")[..]);
338
-
339
- let cert = webpki::EndEntityCert::try_from(&ee)
340
- .expect("should parse end entity certificate correctly");
341
342
- let names = cert
343
- .dns_names()
344
- .expect("we should get a result even without subjectAltNames");
345
346
- assert!(names.collect::<Vec<_>>().is_empty());
+ expect_cert_dns_names(include_bytes!("misc/no_subject_alternative_name.der"), [])
347
}
348
349
0 commit comments