Loading ffi.rs +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ pub static SSL_ERROR_WANT_ACCEPT: c_int = 8; pub static SSL_VERIFY_NONE: c_int = 0; pub static SSL_VERIFY_PEER: c_int = 1; #[link_args = "-lssl"] #[link_args = "-lssl -lcrypto"] extern "C" { } externfn!(fn ERR_get_error() -> c_ulong) Loading lib.rs +3 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ use std::libc::{c_int, c_void}; mod ffi; #[cfg(test)] mod tests; static mut STARTED_INIT: AtomicBool = INIT_ATOMIC_BOOL; static mut FINISHED_INIT: AtomicBool = INIT_ATOMIC_BOOL; Loading test.rs→tests.rs +1 −3 Original line number Diff line number Diff line extern mod ssl; use std::rt::io::Writer; use std::rt::io::extensions::ReaderUtil; use std::rt::io::net::tcp::TcpStream; use std::str; use ssl::{Sslv23, SslCtx, SslStream, SslVerifyPeer}; use super::{Sslv23, SslCtx, SslStream, SslVerifyPeer}; #[test] fn test_new_ctx() { Loading Loading
ffi.rs +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ pub static SSL_ERROR_WANT_ACCEPT: c_int = 8; pub static SSL_VERIFY_NONE: c_int = 0; pub static SSL_VERIFY_PEER: c_int = 1; #[link_args = "-lssl"] #[link_args = "-lssl -lcrypto"] extern "C" { } externfn!(fn ERR_get_error() -> c_ulong) Loading
lib.rs +3 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ use std::libc::{c_int, c_void}; mod ffi; #[cfg(test)] mod tests; static mut STARTED_INIT: AtomicBool = INIT_ATOMIC_BOOL; static mut FINISHED_INIT: AtomicBool = INIT_ATOMIC_BOOL; Loading
test.rs→tests.rs +1 −3 Original line number Diff line number Diff line extern mod ssl; use std::rt::io::Writer; use std::rt::io::extensions::ReaderUtil; use std::rt::io::net::tcp::TcpStream; use std::str; use ssl::{Sslv23, SslCtx, SslStream, SslVerifyPeer}; use super::{Sslv23, SslCtx, SslStream, SslVerifyPeer}; #[test] fn test_new_ctx() { Loading