Commit 448e8ebb authored by Steven Fackler's avatar Steven Fackler
Browse files

Move tests to in-binary and fix link args

parent 4e54c159
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+3 −0
Original line number Diff line number Diff line
@@ -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;

+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() {