Read data from SSL connection
(&mut self, buf: &mut [u8])
| 2444 | |
| 2445 | // Read data from SSL connection |
| 2446 | fn ssl_read(&mut self, buf: &mut [u8]) -> Result<usize, ssl::Error> { |
| 2447 | match self { |
| 2448 | SslConnection::Socket(stream) => stream.ssl_read(buf), |
| 2449 | SslConnection::Bio(stream) => stream.ssl_read(buf), |
| 2450 | } |
| 2451 | } |
| 2452 | |
| 2453 | // Get SSL shutdown state |
| 2454 | fn get_shutdown(&mut self) -> ssl::ShutdownState { |