Loading openssl-sys/src/handwritten/x509v3.rs +7 −7 Original line number Diff line number Diff line Loading @@ -96,19 +96,19 @@ extern "C" { indent: c_int, ) -> c_int; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get_extension_flags(x: *mut X509) -> u32; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get_key_usage(x: *mut X509) -> u32; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_subject_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_authority_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_authority_issuer(x: *mut X509) -> *const stack_st_GENERAL_NAME; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_authority_serial(x: *mut X509) -> *const ASN1_INTEGER; } Loading openssl/src/x509/mod.rs +4 −4 Original line number Diff line number Diff line Loading @@ -485,7 +485,7 @@ impl X509Ref { /// Returns this certificate's subject key id, if it exists. #[corresponds(X509_get0_subject_key_id)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn subject_key_id(&self) -> Option<&Asn1StringRef> { unsafe { let data = ffi::X509_get0_subject_key_id(self.as_ptr()); Loading @@ -495,7 +495,7 @@ impl X509Ref { /// Returns this certificate's authority key id, if it exists. #[corresponds(X509_get0_authority_key_id)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn authority_key_id(&self) -> Option<&Asn1StringRef> { unsafe { let data = ffi::X509_get0_authority_key_id(self.as_ptr()); Loading @@ -505,7 +505,7 @@ impl X509Ref { /// Returns this certificate's authority issuer name entries, if they exist. #[corresponds(X509_get0_authority_issuer)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn authority_issuer(&self) -> Option<Stack<GeneralName>> { unsafe { let stack = ffi::X509_get0_authority_issuer(self.as_ptr()); Loading @@ -515,7 +515,7 @@ impl X509Ref { /// Returns this certificate's authority serial number, if it exists. #[corresponds(X509_get0_authority_serial)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn authority_serial(&self) -> Option<&Asn1IntegerRef> { unsafe { let r = ffi::X509_get0_authority_serial(self.as_ptr()); Loading Loading
openssl-sys/src/handwritten/x509v3.rs +7 −7 Original line number Diff line number Diff line Loading @@ -96,19 +96,19 @@ extern "C" { indent: c_int, ) -> c_int; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get_extension_flags(x: *mut X509) -> u32; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get_key_usage(x: *mut X509) -> u32; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_subject_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_authority_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_authority_issuer(x: *mut X509) -> *const stack_st_GENERAL_NAME; #[cfg(ossl110)] #[cfg(ossl111)] pub fn X509_get0_authority_serial(x: *mut X509) -> *const ASN1_INTEGER; } Loading
openssl/src/x509/mod.rs +4 −4 Original line number Diff line number Diff line Loading @@ -485,7 +485,7 @@ impl X509Ref { /// Returns this certificate's subject key id, if it exists. #[corresponds(X509_get0_subject_key_id)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn subject_key_id(&self) -> Option<&Asn1StringRef> { unsafe { let data = ffi::X509_get0_subject_key_id(self.as_ptr()); Loading @@ -495,7 +495,7 @@ impl X509Ref { /// Returns this certificate's authority key id, if it exists. #[corresponds(X509_get0_authority_key_id)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn authority_key_id(&self) -> Option<&Asn1StringRef> { unsafe { let data = ffi::X509_get0_authority_key_id(self.as_ptr()); Loading @@ -505,7 +505,7 @@ impl X509Ref { /// Returns this certificate's authority issuer name entries, if they exist. #[corresponds(X509_get0_authority_issuer)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn authority_issuer(&self) -> Option<Stack<GeneralName>> { unsafe { let stack = ffi::X509_get0_authority_issuer(self.as_ptr()); Loading @@ -515,7 +515,7 @@ impl X509Ref { /// Returns this certificate's authority serial number, if it exists. #[corresponds(X509_get0_authority_serial)] #[cfg(ossl110)] #[cfg(ossl111)] pub fn authority_serial(&self) -> Option<&Asn1IntegerRef> { unsafe { let r = ffi::X509_get0_authority_serial(self.as_ptr()); Loading