Update mod.rs

This commit is contained in:
Steven Fackler 2020-08-11 10:04:38 -04:00 committed by GitHub
parent 4849ac0aab
commit 8c02f30444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -399,6 +399,8 @@ impl X509Ref {
} }
/// Returns the hash of the certificates subject /// Returns the hash of the certificates subject
///
/// This corresponds to `X509_subject_name_hash`.
pub fn subject_name_hash(&self) -> u32 { pub fn subject_name_hash(&self) -> u32 {
unsafe { ffi::X509_subject_name_hash(self.as_ptr()) as u32 } unsafe { ffi::X509_subject_name_hash(self.as_ptr()) as u32 }
} }