Cast to u32

This commit is contained in:
marcelbuesing 2020-08-11 14:34:46 +02:00
parent 1cffc2b575
commit 4849ac0aab
No known key found for this signature in database
GPG Key ID: 5E8C5624159F80BB
1 changed files with 2 additions and 2 deletions

View File

@ -399,8 +399,8 @@ impl X509Ref {
}
/// Returns the hash of the certificates subject
pub fn subject_name_hash(&self) -> u64 {
unsafe { ffi::X509_subject_name_hash(self.as_ptr()) }
pub fn subject_name_hash(&self) -> u32 {
unsafe { ffi::X509_subject_name_hash(self.as_ptr()) as u32 }
}
/// Returns this certificate's issuer name.