diff options
| author | Benjamin Fry <[email protected]> | 2017-03-20 22:28:15 -0700 |
|---|---|---|
| committer | Bastian Köcher <[email protected]> | 2018-03-07 13:51:58 +0100 |
| commit | d8a11973e2c9ccc5a806936edb2cccf28332bc5e (patch) | |
| tree | 823e6efa3faab61402fe41c3d7fba07884c42d2d /openssl/src/x509/tests.rs | |
| parent | add comment about consuming self in verify_cert (diff) | |
| download | rust-openssl-d8a11973e2c9ccc5a806936edb2cccf28332bc5e.tar.xz rust-openssl-d8a11973e2c9ccc5a806936edb2cccf28332bc5e.zip | |
convert to raw pass-through methods
Diffstat (limited to 'openssl/src/x509/tests.rs')
| -rw-r--r-- | openssl/src/x509/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/x509/tests.rs b/openssl/src/x509/tests.rs index b6303ade..6ef4f18e 100644 --- a/openssl/src/x509/tests.rs +++ b/openssl/src/x509/tests.rs @@ -303,8 +303,8 @@ fn test_verify_cert() { store_bldr.add_cert(ca).unwrap(); let store = store_bldr.build(); - let store_ctx_bldr = X509StoreContext::builder().unwrap(); - let store_ctx = store_ctx_bldr.build(&store, &cert, &Stack::new().unwrap()).unwrap(); + let store_ctx = X509StoreContext::new().unwrap(); + store_ctx.init(&store, &cert, &Stack::new().unwrap()).unwrap(); assert!(store_ctx.verify_cert().unwrap().is_none()); } |