Loading openssl/src/bn.rs +3 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ //! # fn main() { //! # bignums(); //! # } //! ``` //! //! [`BIGNUM`]: https://wiki.openssl.org/index.php/Manual:Bn_internal(3) use ffi; Loading openssl/src/ssl/mod.rs +3 −1 Original line number Diff line number Diff line Loading @@ -2247,7 +2247,9 @@ impl<S: Read + Write> SslStream<S> { /// session down. In particular, it must be fully shut down if the connection is to be used for /// further communication in the future. /// /// This corresponds to [`SSL_shutdown`]: https://www.openssl.org/docs/man1.0.2/ssl/SSL_shutdown.html /// This corresponds to [`SSL_shutdown`]. /// /// [`SSL_shutdown`]: https://www.openssl.org/docs/man1.0.2/ssl/SSL_shutdown.html pub fn shutdown(&mut self) -> Result<ShutdownResult, Error> { match unsafe { ffi::SSL_shutdown(self.ssl.as_ptr()) } { 0 => Ok(ShutdownResult::Sent), Loading Loading
openssl/src/bn.rs +3 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ //! # fn main() { //! # bignums(); //! # } //! ``` //! //! [`BIGNUM`]: https://wiki.openssl.org/index.php/Manual:Bn_internal(3) use ffi; Loading
openssl/src/ssl/mod.rs +3 −1 Original line number Diff line number Diff line Loading @@ -2247,7 +2247,9 @@ impl<S: Read + Write> SslStream<S> { /// session down. In particular, it must be fully shut down if the connection is to be used for /// further communication in the future. /// /// This corresponds to [`SSL_shutdown`]: https://www.openssl.org/docs/man1.0.2/ssl/SSL_shutdown.html /// This corresponds to [`SSL_shutdown`]. /// /// [`SSL_shutdown`]: https://www.openssl.org/docs/man1.0.2/ssl/SSL_shutdown.html pub fn shutdown(&mut self) -> Result<ShutdownResult, Error> { match unsafe { ffi::SSL_shutdown(self.ssl.as_ptr()) } { 0 => Ok(ShutdownResult::Sent), Loading