aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/x509/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/x509/tests.rs')
-rw-r--r--openssl/src/x509/tests.rs4
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());
}