Skip to content

Commit

Permalink
Merge pull request sfackler#1757 from vishwin/master
Browse files Browse the repository at this point in the history
LibreSSL 3.7.0
  • Loading branch information
sfackler committed Dec 19, 2022
2 parents d0999b5 + fda7d92 commit d780a8f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -187,6 +187,11 @@ jobs:
library:
name: libressl
version: 3.6.1
- target: x86_64-unknown-linux-gnu
bindgen: true
library:
name: libressl
version: 3.7.0
- target: x86_64-unknown-linux-gnu
bindgen: false
library:
Expand All @@ -202,6 +207,11 @@ jobs:
library:
name: libressl
version: 3.6.1
- target: x86_64-unknown-linux-gnu
bindgen: false
library:
name: libressl
version: 3.7.0
exclude:
- library:
name: boringssl
Expand Down
3 changes: 3 additions & 0 deletions openssl-sys/build/cfgs.rs
Expand Up @@ -43,6 +43,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
if libressl_version >= 0x3_05_00_00_0 {
cfgs.push("libressl350");
}
if libressl_version >= 0x3_07_00_00_0 {
cfgs.push("libressl370");
}
} else {
let openssl_version = openssl_version.unwrap();

Expand Down
3 changes: 2 additions & 1 deletion openssl-sys/build/main.rs
Expand Up @@ -282,6 +282,7 @@ See rust-openssl documentation for more information:
(3, 5, _) => ('3', '5', 'x'),
(3, 6, 0) => ('3', '6', '0'),
(3, 6, _) => ('3', '6', 'x'),
(3, 7, 0) => ('3', '7', '0'),
_ => version_error(),
};

Expand Down Expand Up @@ -324,7 +325,7 @@ fn version_error() -> ! {
"
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3.0.0), or LibreSSL 2.5
through 3.6.x, but a different version of OpenSSL was found. The build is now aborting
through 3.7.0, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.
"
Expand Down
4 changes: 2 additions & 2 deletions openssl-sys/src/x509_vfy.rs
Expand Up @@ -100,9 +100,9 @@ cfg_if! {
#[cfg(ossl300)]
pub const X509_V_ERR_INVALID_CA: c_int = 79;

#[cfg(not(ossl110))]
#[cfg(not(any(ossl110, libressl370)))]
pub const X509_V_FLAG_CB_ISSUER_CHECK: c_ulong = 0x1;
#[cfg(ossl110)]
#[cfg(any(ossl110, libressl370))]
pub const X509_V_FLAG_CB_ISSUER_CHECK: c_ulong = 0x0;
pub const X509_V_FLAG_USE_CHECK_TIME: c_ulong = 0x2;
pub const X509_V_FLAG_CRL_CHECK: c_ulong = 0x4;
Expand Down

0 comments on commit d780a8f

Please sign in to comment.