Loading openssl-sys/build/cfgs.rs +3 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<& if openssl_version >= 0x1_01_01_03_0 { cfgs.push("ossl111c"); } if openssl_version >= 0x1_01_01_04_0 { cfgs.push("ossl111d"); } } cfgs Loading openssl-sys/src/handwritten/x509v3.rs +2 −2 Original line number Diff line number Diff line Loading @@ -106,9 +106,9 @@ extern "C" { pub fn X509_get0_subject_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl110)] pub fn X509_get0_authority_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl111)] #[cfg(ossl111d)] pub fn X509_get0_authority_issuer(x: *mut X509) -> *const stack_st_GENERAL_NAME; #[cfg(ossl111)] #[cfg(ossl111d)] pub fn X509_get0_authority_serial(x: *mut X509) -> *const ASN1_INTEGER; } Loading openssl/src/x509/mod.rs +2 −2 Original line number Diff line number Diff line Loading @@ -505,7 +505,7 @@ impl X509Ref { /// Returns this certificate's authority issuer name entries, if they exist. #[corresponds(X509_get0_authority_issuer)] #[cfg(ossl111)] #[cfg(ossl111d)] pub fn authority_issuer(&self) -> Option<&StackRef<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(ossl111)] #[cfg(ossl111d)] pub fn authority_serial(&self) -> Option<&Asn1IntegerRef> { unsafe { let r = ffi::X509_get0_authority_serial(self.as_ptr()); Loading openssl/src/x509/tests.rs +1 −1 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ fn test_authority_key_id() { } #[test] #[cfg(ossl111)] #[cfg(ossl111d)] fn test_authority_issuer_and_serial() { let cert = include_bytes!("../../test/authority_key_identifier.pem"); let cert = X509::from_pem(cert).unwrap(); Loading Loading
openssl-sys/build/cfgs.rs +3 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<& if openssl_version >= 0x1_01_01_03_0 { cfgs.push("ossl111c"); } if openssl_version >= 0x1_01_01_04_0 { cfgs.push("ossl111d"); } } cfgs Loading
openssl-sys/src/handwritten/x509v3.rs +2 −2 Original line number Diff line number Diff line Loading @@ -106,9 +106,9 @@ extern "C" { pub fn X509_get0_subject_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl110)] pub fn X509_get0_authority_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING; #[cfg(ossl111)] #[cfg(ossl111d)] pub fn X509_get0_authority_issuer(x: *mut X509) -> *const stack_st_GENERAL_NAME; #[cfg(ossl111)] #[cfg(ossl111d)] pub fn X509_get0_authority_serial(x: *mut X509) -> *const ASN1_INTEGER; } Loading
openssl/src/x509/mod.rs +2 −2 Original line number Diff line number Diff line Loading @@ -505,7 +505,7 @@ impl X509Ref { /// Returns this certificate's authority issuer name entries, if they exist. #[corresponds(X509_get0_authority_issuer)] #[cfg(ossl111)] #[cfg(ossl111d)] pub fn authority_issuer(&self) -> Option<&StackRef<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(ossl111)] #[cfg(ossl111d)] pub fn authority_serial(&self) -> Option<&Asn1IntegerRef> { unsafe { let r = ffi::X509_get0_authority_serial(self.as_ptr()); Loading
openssl/src/x509/tests.rs +1 −1 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ fn test_authority_key_id() { } #[test] #[cfg(ossl111)] #[cfg(ossl111d)] fn test_authority_issuer_and_serial() { let cert = include_bytes!("../../test/authority_key_identifier.pem"); let cert = X509::from_pem(cert).unwrap(); Loading