diff options
| author | Steven Fackler <[email protected]> | 2014-11-20 10:10:17 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-11-20 10:10:17 -0800 |
| commit | 33af6a0b7a1037945181db96cf4f6915457a3df6 (patch) | |
| tree | 558b0ad6f95b8a4efec32ce814358ce39326145a /src | |
| parent | Merge pull request #54 from jmesmon/server (diff) | |
| parent | Slice syntax fix (diff) | |
| download | rust-openssl-33af6a0b7a1037945181db96cf4f6915457a3df6.tar.xz rust-openssl-33af6a0b7a1037945181db96cf4f6915457a3df6.zip | |
Merge pull request #100 from gkoz/new_cert
Replace an expired cert with a new one to make tests happy
Diffstat (limited to 'src')
| -rw-r--r-- | src/ssl/tests.rs | 2 | ||||
| -rw-r--r-- | src/x509/mod.rs | 2 | ||||
| -rw-r--r-- | src/x509/tests.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/tests.rs b/src/ssl/tests.rs index 5aa9834f..99ef2386 100644 --- a/src/ssl/tests.rs +++ b/src/ssl/tests.rs @@ -163,7 +163,7 @@ fn test_verify_callback_data() { // in DER format. // Command: openssl x509 -in test/cert.pem -outform DER | openssl dgst -sha256 // Please update if "test/cert.pem" will ever change - let node_hash_str = "6204f6617e1af7495394250655f43600cd483e2dfc2005e92d0fe439d0723c34"; + let node_hash_str = "46e3f1a6d17a41ce70d0c66ef51cee2ab4ba67cac8940e23f10c1f944b49fb5c"; let node_id = node_hash_str.from_hex().unwrap(); ctx.set_verify_with_data(SslVerifyPeer, callback, node_id); ctx.set_verify_depth(1); diff --git a/src/x509/mod.rs b/src/x509/mod.rs index 21c3a9d6..f35eb7c2 100644 --- a/src/x509/mod.rs +++ b/src/x509/mod.rs @@ -152,7 +152,7 @@ impl<'a, T: AsStr<'a>> ToStr for Vec<T> { /// .set_valid_period(365*2) /// .set_CN("SuperMegaCorp Inc.") /// .set_sign_hash(SHA256) -/// .set_usage([DigitalSignature]); +/// .set_usage(&[DigitalSignature]); /// /// let (cert, pkey) = gen.generate().unwrap(); /// diff --git a/src/x509/tests.rs b/src/x509/tests.rs index 259fc851..4e7fc925 100644 --- a/src/x509/tests.rs +++ b/src/x509/tests.rs @@ -44,7 +44,7 @@ fn test_cert_loading() { // in DER format. // Command: openssl x509 -in test/cert.pem -outform DER | openssl dgst -sha256 // Please update if "test/cert.pem" will ever change - let hash_str = "6204f6617e1af7495394250655f43600cd483e2dfc2005e92d0fe439d0723c34"; + let hash_str = "46e3f1a6d17a41ce70d0c66ef51cee2ab4ba67cac8940e23f10c1f944b49fb5c"; let hash_vec = hash_str.from_hex().unwrap(); assert_eq!(fingerprint.as_slice(), hash_vec.as_slice()); |