diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 08edb9efc2..2c9d1583e3 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -3485,7 +3485,8 @@ impl SslRef { } } - /// this returns the hash, e.g. SHA1, SHA512 + /// Returns the hash of the signature. For example, if the connection used an + /// RSA_PSS+SHA256 signature this will return the nid for SHA256. #[corresponds(SSL_get_signature_nid)] #[cfg(ossl111)] pub fn signature_nid(&self) -> Result { @@ -3498,7 +3499,8 @@ impl SslRef { } } - /// this returns the hash, e.g. SHA1, SHA512 + /// Returns the hash of the signature. For example, if the connection used an + /// RSA_PSS+SHA256 signature this will return the nid for SHA256. #[corresponds(SSL_get_peer_signature_nid)] #[cfg(ossl102)] pub fn peer_signature_nid(&self) -> Result { @@ -3511,7 +3513,8 @@ impl SslRef { } } - /// this returns the signature algorithm e.g. RSA/RSA_PSS + /// Returns the signature algorithm. For example, if the connection used an + /// RSA_PSS+SHA256 signature this will return the nid for RSA_PSS. #[corresponds(SSL_get_signature_type_nid)] #[cfg(ossl111)] pub fn signature_type_nid(&self) -> Result { @@ -3525,7 +3528,8 @@ impl SslRef { } } - /// this returns the signature algorithm e.g. RSA/RSA_PSS + /// Returns the signature algorithm. For example, if the connection used an + /// RSA_PSS+SHA256 signature this will return the nid for RSA_PSS. #[corresponds(SSL_get_peer_signature_type_nid)] #[cfg(ossl111)] pub fn peer_signature_type_nid(&self) -> Result {