Loading .github/workflows/ci.yml +3 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,9 @@ jobs: version: bcecc7d834fc44ad257b2f23f88e1cf597ab2736 - name: openssl version: vendored - name: openssl version: 3.2.0-alpha1 dl-path: / - name: openssl version: 3.1.2 dl-path: / Loading openssl-sys/build/cfgs.rs +3 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<& } else { let openssl_version = openssl_version.unwrap(); if openssl_version >= 0x3_02_00_00_0 { cfgs.push("ossl320"); } if openssl_version >= 0x3_00_00_00_0 { cfgs.push("ossl300"); } Loading openssl-sys/src/x509v3.rs +9 −1 Original line number Diff line number Diff line Loading @@ -89,8 +89,16 @@ pub const X509_PURPOSE_CRL_SIGN: c_int = 6; pub const X509_PURPOSE_ANY: c_int = 7; pub const X509_PURPOSE_OCSP_HELPER: c_int = 8; pub const X509_PURPOSE_TIMESTAMP_SIGN: c_int = 9; #[cfg(ossl320)] pub const X509_PURPOSE_CODE_SIGN: c_int = 10; pub const X509_PURPOSE_MIN: c_int = 1; cfg_if! { if #[cfg(ossl320)] { pub const X509_PURPOSE_MAX: c_int = 10; } else { pub const X509_PURPOSE_MAX: c_int = 9; } } pub const CRL_REASON_UNSPECIFIED: c_int = 0; pub const CRL_REASON_KEY_COMPROMISE: c_int = 1; Loading openssl/build.rs +3 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,9 @@ fn main() { if version >= 0x3_01_00_00_0 { println!("cargo:rustc-cfg=ossl310"); } if version >= 0x3_02_00_00_0 { println!("cargo:rustc-cfg=ossl320"); } } if let Ok(version) = env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER") { Loading openssl/src/x509/mod.rs +2 −0 Original line number Diff line number Diff line Loading @@ -2459,6 +2459,8 @@ impl X509PurposeId { pub const ANY: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_ANY); pub const OCSP_HELPER: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_OCSP_HELPER); pub const TIMESTAMP_SIGN: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_TIMESTAMP_SIGN); #[cfg(ossl320)] pub const CODE_SIGN: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_CODE_SIGN); /// Constructs an `X509PurposeId` from a raw OpenSSL value. pub fn from_raw(id: c_int) -> Self { Loading Loading
.github/workflows/ci.yml +3 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,9 @@ jobs: version: bcecc7d834fc44ad257b2f23f88e1cf597ab2736 - name: openssl version: vendored - name: openssl version: 3.2.0-alpha1 dl-path: / - name: openssl version: 3.1.2 dl-path: / Loading
openssl-sys/build/cfgs.rs +3 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<& } else { let openssl_version = openssl_version.unwrap(); if openssl_version >= 0x3_02_00_00_0 { cfgs.push("ossl320"); } if openssl_version >= 0x3_00_00_00_0 { cfgs.push("ossl300"); } Loading
openssl-sys/src/x509v3.rs +9 −1 Original line number Diff line number Diff line Loading @@ -89,8 +89,16 @@ pub const X509_PURPOSE_CRL_SIGN: c_int = 6; pub const X509_PURPOSE_ANY: c_int = 7; pub const X509_PURPOSE_OCSP_HELPER: c_int = 8; pub const X509_PURPOSE_TIMESTAMP_SIGN: c_int = 9; #[cfg(ossl320)] pub const X509_PURPOSE_CODE_SIGN: c_int = 10; pub const X509_PURPOSE_MIN: c_int = 1; cfg_if! { if #[cfg(ossl320)] { pub const X509_PURPOSE_MAX: c_int = 10; } else { pub const X509_PURPOSE_MAX: c_int = 9; } } pub const CRL_REASON_UNSPECIFIED: c_int = 0; pub const CRL_REASON_KEY_COMPROMISE: c_int = 1; Loading
openssl/build.rs +3 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,9 @@ fn main() { if version >= 0x3_01_00_00_0 { println!("cargo:rustc-cfg=ossl310"); } if version >= 0x3_02_00_00_0 { println!("cargo:rustc-cfg=ossl320"); } } if let Ok(version) = env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER") { Loading
openssl/src/x509/mod.rs +2 −0 Original line number Diff line number Diff line Loading @@ -2459,6 +2459,8 @@ impl X509PurposeId { pub const ANY: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_ANY); pub const OCSP_HELPER: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_OCSP_HELPER); pub const TIMESTAMP_SIGN: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_TIMESTAMP_SIGN); #[cfg(ossl320)] pub const CODE_SIGN: X509PurposeId = X509PurposeId(ffi::X509_PURPOSE_CODE_SIGN); /// Constructs an `X509PurposeId` from a raw OpenSSL value. pub fn from_raw(id: c_int) -> Self { Loading