You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
549 B

#![allow(dead_code)]
// Extensions & macros
#[macro_use] mod ext;
#[allow(unused_imports)] use ext::*;
use std::sync::Arc;
use tokio::io::{AsyncWrite, AsyncRead};
use openssl::symm::Crypter;
// Wrapper for plain/symm-enc stream swapping
mod dual;
// Crypto shit
mod crypt;
// Stream impls
mod stream;
/// A type that implements both `AsyncWrite` and `AsyncRead`
pub trait AsyncStream: AsyncRead + AsyncWrite{}
impl<T: AsyncRead + AsyncWrite + ?Sized> AsyncStream for T{}
pub use stream::{
EncryptedStream,
WriteHalf,
ReadHalf,
};