aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorManuel Schölling <[email protected]>2015-03-19 10:15:02 +0100
committerManuel Schölling <[email protected]>2015-04-06 12:25:15 +0200
commit3c03dd9535f473c1553e6774e2f9a30516d066a3 (patch)
treed6602f30dd8a970873c93c370cf55eff568afe14 /openssl/src
parentChange SslContext::set_read_ahead(c_long) to SslContext::set_read_ahead(u32) (diff)
downloadrust-openssl-3c03dd9535f473c1553e6774e2f9a30516d066a3.tar.xz
rust-openssl-3c03dd9535f473c1553e6774e2f9a30516d066a3.zip
Add ability to load private keys from files and use raw keys and certificates for SslContext
Conflicts: openssl/src/ssl/tests.rs
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/tests.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/openssl/src/ssl/tests.rs b/openssl/src/ssl/tests.rs
index b9442010..8de0d448 100644
--- a/openssl/src/ssl/tests.rs
+++ b/openssl/src/ssl/tests.rs
@@ -26,6 +26,9 @@ use crypto::pkey::PKey;
use ssl::connected_socket::Connect;
#[cfg(feature="dtlsv1")]
use std::net::UdpSocket;
+use ssl::SslVerifyMode::SslVerifyPeer;
+use x509::{X509StoreContext,X509};
+use crypto::pkey::PKey;
#[cfg(feature="dtlsv1")]
use ssl::SslMethod::Dtlsv1;
@@ -119,7 +122,7 @@ run_test!(verify_trusted, |method, stream| {
Err(err) => panic!("Expected success, got {:?}", err)
}
});
-/*
+
run_test!(verify_untrusted_callback_override_ok, |method, stream| {
fn callback(_preverify_ok: bool, _x509_ctx: &X509StoreContext) -> bool {
true
@@ -288,7 +291,7 @@ run_test!(clear_ctx_options, |method, _| {
let opts = ctx.clear_options(ssl::SSL_OP_ALL);
assert!(!opts.contains(ssl::SSL_OP_ALL));
});
-*/
+
#[test]
fn test_write() {
let stream = TcpStream::connect("127.0.0.1:15418").unwrap();