Fix npn feature

This commit is contained in:
Steven Fackler 2015-03-25 22:02:14 -07:00
parent 36c90bb205
commit 2453c0f96c
2 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,10 @@ use std::ptr;
use std::sync::{Once, ONCE_INIT, Arc}; use std::sync::{Once, ONCE_INIT, Arc};
use std::ops::{Deref, DerefMut}; use std::ops::{Deref, DerefMut};
use std::cmp; use std::cmp;
#[cfg(feature = "npn")]
use libc::{c_uchar, c_uint};
#[cfg(feature = "npn")]
use std::slice;
use bio::{MemBio}; use bio::{MemBio};
use ffi; use ffi;

View File

@ -3,6 +3,10 @@ use std::net::TcpStream;
use std::io; use std::io;
use std::io::prelude::*; use std::io::prelude::*;
use std::path::Path; use std::path::Path;
#[cfg(feature = "npn")]
use std::net::TcpListener;
#[cfg(feature = "npn")]
use std::thread;
use crypto::hash::Type::{SHA256}; use crypto::hash::Type::{SHA256};
use ssl; use ssl;
@ -10,6 +14,8 @@ use ssl::SslMethod::Sslv23;
use ssl::{SslContext, SslStream, VerifyCallback}; use ssl::{SslContext, SslStream, VerifyCallback};
use ssl::SslVerifyMode::SslVerifyPeer; use ssl::SslVerifyMode::SslVerifyPeer;
use x509::X509StoreContext; use x509::X509StoreContext;
#[cfg(feature = "npn")]
use x509::X509FileType;
#[test] #[test]
fn test_new_ctx() { fn test_new_ctx() {