Lines Matching refs:SslStream

29 //! use openssl::ssl::{SslMethod, SslAcceptor, SslStream, SslFiletype};
43 //! fn handle_client(stream: SslStream<TcpStream>) {
302 /// Note that `SslStream::read` and `SslStream::write` will automatically retry regardless
303 /// of the state of this option. It only affects `SslStream::ssl_read` and
304 /// `SslStream::ssl_write`.
2276 pub fn connect<S>(self, stream: S) -> Result<SslStream<S>, HandshakeError<S>>
2295 pub fn accept<S>(self, stream: S) -> Result<SslStream<S>, HandshakeError<S>>
3398 stream: SslStream<S>,
3438 pub fn handshake(mut self) -> Result<SslStream<S>, HandshakeError<S>> {
3455 pub struct SslStream<S> {
3461 impl<S> Drop for SslStream<S> {
3471 impl<S> fmt::Debug for SslStream<S>
3476 fmt.debug_struct("SslStream")
3483 impl<S: Read + Write> SslStream<S> {
3484 /// Creates a new `SslStream`.
3498 Ok(SslStream {
3505 /// Constructs an `SslStream` from a pointer to the underlying OpenSSL `SSL` struct.
3514 note = "use Ssl::from_ptr and SslStream::new instead"
3735 impl<S> SslStream<S> {
3798 impl<S: Read + Write> Read for SslStream<S> {
3818 impl<S: Read + Write> Write for SslStream<S> {
3838 /// A partially constructed `SslStream`, useful for unusual handshakes.
3841 note = "use the methods directly on Ssl/SslStream instead"
3844 inner: SslStream<S>,
3852 /// Begin creating an `SslStream` atop `stream`
3855 inner: SslStream::new(ssl, stream).unwrap(),
3902 pub fn connect(mut self) -> Result<SslStream<S>, HandshakeError<S>> {
3921 pub fn accept(mut self) -> Result<SslStream<S>, HandshakeError<S>> {
3946 pub fn handshake(mut self) -> Result<SslStream<S>, HandshakeError<S>> {