Fix function name in peer_finished documentation

This commit is contained in:
Kirill Fomichev 2020-04-12 16:20:13 +03:00
parent d47dc792ce
commit 5d7d83e869
No known key found for this signature in database
GPG Key ID: 6AA0144D5E0C0C0A
1 changed files with 1 additions and 1 deletions

View File

@ -3212,7 +3212,7 @@ impl SslRef {
/// The total size of the message is returned, so this can be used to determine the size of the /// The total size of the message is returned, so this can be used to determine the size of the
/// buffer required. /// buffer required.
/// ///
/// This corresponds to `SSL_get_finished`. /// This corresponds to `SSL_get_peer_finished`.
pub fn peer_finished(&self, buf: &mut [u8]) -> usize { pub fn peer_finished(&self, buf: &mut [u8]) -> usize {
unsafe { unsafe {
ffi::SSL_get_peer_finished(self.as_ptr(), buf.as_mut_ptr() as *mut c_void, buf.len()) ffi::SSL_get_peer_finished(self.as_ptr(), buf.as_mut_ptr() as *mut c_void, buf.len())