aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-05-02 21:29:25 -0700
committerSteven Fackler <[email protected]>2016-05-03 20:24:07 -0700
commit356d4a0420e73dc55491322a21ad5872d2a08415 (patch)
tree8c9381f14b046839792255c992f911ebe9589b24 /openssl/src/ssl
parentRemove silly internal error enum (diff)
downloadrust-openssl-356d4a0420e73dc55491322a21ad5872d2a08415.tar.xz
rust-openssl-356d4a0420e73dc55491322a21ad5872d2a08415.zip
Remove AsRaw{Fd, Socket} impls
An SslStream can't really act as a raw socket since you'd skip the whole TLS layer
Diffstat (limited to 'openssl/src/ssl')
-rw-r--r--openssl/src/ssl/mod.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index c6ebb397..5536a99e 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -17,10 +17,6 @@ use libc::{c_uchar, c_uint};
#[cfg(any(feature = "npn", feature = "alpn"))]
use std::slice;
use std::marker::PhantomData;
-#[cfg(unix)]
-use std::os::unix::io::{AsRawFd, RawFd};
-#[cfg(windows)]
-use std::os::windows::io::{AsRawSocket, RawSocket};
use ffi;
use ffi_extras;
@@ -1052,20 +1048,6 @@ impl<S> fmt::Debug for SslStream<S> where S: fmt::Debug
}
}
-#[cfg(unix)]
-impl<S: AsRawFd> AsRawFd for SslStream<S> {
- fn as_raw_fd(&self) -> RawFd {
- self.get_ref().as_raw_fd()
- }
-}
-
-#[cfg(windows)]
-impl<S: AsRawSocket> AsRawSocket for SslStream<S> {
- fn as_raw_socket(&self) -> RawSocket {
- self.get_ref().as_raw_socket()
- }
-}
-
impl<S: Read + Write> SslStream<S> {
fn new_base(ssl: Ssl, stream: S) -> Self {
unsafe {