Loading .github/workflows/ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -154,10 +154,10 @@ jobs: - name: openssl version: vendored - name: openssl version: 3.0.0 version: 3.0.1 dl-path: / - name: openssl version: 1.1.1l version: 1.1.1m dl-path: / - name: openssl version: 1.1.0l Loading openssl-sys/build/run_bindgen.rs +5 −1 Original line number Diff line number Diff line Loading @@ -39,9 +39,13 @@ const INCLUDES: &str = " #include <openssl/cms.h> #endif #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x010100000 #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000 #include <openssl/kdf.h> #endif #if OPENSSL_VERSION_NUMBER >= 0x30000000 #include <openssl/provider.h> #endif "; pub fn run(include_dirs: &[PathBuf]) { Loading openssl-sys/src/handwritten/mod.rs +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ pub use handwritten::ocsp::*; pub use handwritten::pem::*; pub use handwritten::pkcs12::*; pub use handwritten::pkcs7::*; pub use handwritten::provider::*; pub use handwritten::rand::*; pub use handwritten::rsa::*; pub use handwritten::safestack::*; Loading Loading @@ -49,6 +50,7 @@ mod ocsp; mod pem; mod pkcs12; mod pkcs7; mod provider; mod rand; mod rsa; mod safestack; Loading openssl-sys/src/handwritten/provider.rs 0 → 100644 +15 −0 Original line number Diff line number Diff line use libc::*; use *; extern "C" { #[cfg(ossl300)] pub fn OSSL_PROVIDER_load(ctx: *mut OSSL_LIB_CTX, name: *const c_char) -> *mut OSSL_PROVIDER; #[cfg(ossl300)] pub fn OSSL_PROVIDER_try_load( ctx: *mut OSSL_LIB_CTX, name: *const c_char, retain_fallbacks: c_int, ) -> *mut OSSL_PROVIDER; #[cfg(ossl300)] pub fn OSSL_PROVIDER_unload(prov: *mut OSSL_PROVIDER) -> c_int; } openssl-sys/src/handwritten/types.rs +3 −0 Original line number Diff line number Diff line Loading @@ -1071,5 +1071,8 @@ cfg_if! { pub enum OCSP_RESPONSE {} #[cfg(ossl300)] pub enum OSSL_PROVIDER {} #[cfg(ossl300)] pub enum OSSL_LIB_CTX {} Loading
.github/workflows/ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -154,10 +154,10 @@ jobs: - name: openssl version: vendored - name: openssl version: 3.0.0 version: 3.0.1 dl-path: / - name: openssl version: 1.1.1l version: 1.1.1m dl-path: / - name: openssl version: 1.1.0l Loading
openssl-sys/build/run_bindgen.rs +5 −1 Original line number Diff line number Diff line Loading @@ -39,9 +39,13 @@ const INCLUDES: &str = " #include <openssl/cms.h> #endif #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x010100000 #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000 #include <openssl/kdf.h> #endif #if OPENSSL_VERSION_NUMBER >= 0x30000000 #include <openssl/provider.h> #endif "; pub fn run(include_dirs: &[PathBuf]) { Loading
openssl-sys/src/handwritten/mod.rs +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ pub use handwritten::ocsp::*; pub use handwritten::pem::*; pub use handwritten::pkcs12::*; pub use handwritten::pkcs7::*; pub use handwritten::provider::*; pub use handwritten::rand::*; pub use handwritten::rsa::*; pub use handwritten::safestack::*; Loading Loading @@ -49,6 +50,7 @@ mod ocsp; mod pem; mod pkcs12; mod pkcs7; mod provider; mod rand; mod rsa; mod safestack; Loading
openssl-sys/src/handwritten/provider.rs 0 → 100644 +15 −0 Original line number Diff line number Diff line use libc::*; use *; extern "C" { #[cfg(ossl300)] pub fn OSSL_PROVIDER_load(ctx: *mut OSSL_LIB_CTX, name: *const c_char) -> *mut OSSL_PROVIDER; #[cfg(ossl300)] pub fn OSSL_PROVIDER_try_load( ctx: *mut OSSL_LIB_CTX, name: *const c_char, retain_fallbacks: c_int, ) -> *mut OSSL_PROVIDER; #[cfg(ossl300)] pub fn OSSL_PROVIDER_unload(prov: *mut OSSL_PROVIDER) -> c_int; }
openssl-sys/src/handwritten/types.rs +3 −0 Original line number Diff line number Diff line Loading @@ -1071,5 +1071,8 @@ cfg_if! { pub enum OCSP_RESPONSE {} #[cfg(ossl300)] pub enum OSSL_PROVIDER {} #[cfg(ossl300)] pub enum OSSL_LIB_CTX {}