aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/x509/tests.rs
diff options
context:
space:
mode:
authorLionel Flandrin <[email protected]>2016-10-31 23:53:28 +0100
committerLionel Flandrin <[email protected]>2016-11-01 21:23:18 +0100
commit36bf0bb38750412e5c2700273a850f16398cc427 (patch)
tree547b6ce043a53f6b0ae09ac7d8cbc57edbdebcd0 /openssl/src/x509/tests.rs
parentImplement a generic Stack API to deal with OpenSSL stacks (diff)
downloadrust-openssl-36bf0bb38750412e5c2700273a850f16398cc427.tar.xz
rust-openssl-36bf0bb38750412e5c2700273a850f16398cc427.zip
Replace GeneralNames by the new Stack API
Diffstat (limited to 'openssl/src/x509/tests.rs')
-rw-r--r--openssl/src/x509/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/x509/tests.rs b/openssl/src/x509/tests.rs
index db93c3a8..2527d538 100644
--- a/openssl/src/x509/tests.rs
+++ b/openssl/src/x509/tests.rs
@@ -152,10 +152,10 @@ fn test_subject_alt_name() {
let subject_alt_names = cert.subject_alt_names().unwrap();
assert_eq!(3, subject_alt_names.len());
- assert_eq!(Some("foobar.com"), subject_alt_names.get(0).dnsname());
- assert_eq!(subject_alt_names.get(1).ipaddress(),
+ assert_eq!(Some("foobar.com"), subject_alt_names[0].dnsname());
+ assert_eq!(subject_alt_names[1].ipaddress(),
Some(&[127, 0, 0, 1][..]));
- assert_eq!(subject_alt_names.get(2).ipaddress(),
+ assert_eq!(subject_alt_names[2].ipaddress(),
Some(&b"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01"[..]));
}