diff options
| author | Gleb Kozyrev <[email protected]> | 2014-11-20 07:53:56 +0200 |
|---|---|---|
| committer | Gleb Kozyrev <[email protected]> | 2014-11-20 19:53:31 +0200 |
| commit | 50f11e533cd3e1fb3f893423ee15c685999670cf (patch) | |
| tree | 061c4f1e7aa058f158138ea02b7a6f6b1bebec68 /src | |
| parent | Merge pull request #54 from jmesmon/server (diff) | |
| download | rust-openssl-50f11e533cd3e1fb3f893423ee15c685999670cf.tar.xz rust-openssl-50f11e533cd3e1fb3f893423ee15c685999670cf.zip | |
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/tests.rs | 2 |
2 files changed, 2 insertions, 2 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/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()); |