aboutsummaryrefslogtreecommitdiff
path: root/src/ssl/tests.rs
diff options
context:
space:
mode:
authorValerii Hiora <[email protected]>2014-10-04 06:37:48 +0300
committerValerii Hiora <[email protected]>2014-10-04 06:47:27 +0300
commit4d3f9e0520ed25bb55a95f30fd07a2cb4cf74fa5 (patch)
treee1204894c5915ca4fdfd9cc82bf0c663448aa76f /src/ssl/tests.rs
parentUser-provided data in verify (diff)
downloadrust-openssl-4d3f9e0520ed25bb55a95f30fd07a2cb4cf74fa5.tar.xz
rust-openssl-4d3f9e0520ed25bb55a95f30fd07a2cb4cf74fa5.zip
Simpler setter for verify with data
There is no need in wrapping function in option as there is no sense in providing data without function.
Diffstat (limited to 'src/ssl/tests.rs')
-rw-r--r--src/ssl/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssl/tests.rs b/src/ssl/tests.rs
index 9dd90ae7..0e6edbf7 100644
--- a/src/ssl/tests.rs
+++ b/src/ssl/tests.rs
@@ -176,7 +176,7 @@ fn test_verify_callback_data() {
// Please update if "test/cert.pem" will ever change
let node_hash_str = "6204f6617e1af7495394250655f43600cd483e2dfc2005e92d0fe439d0723c34";
let node_id = hash_str_to_vec(node_hash_str);
- ctx.set_verify_with_data(SslVerifyNone, Some(callback), node_id);
+ ctx.set_verify_with_data(SslVerifyNone, callback, node_id);
ctx.set_verify_depth(1);
match SslStream::new(&ctx, stream) {