Skip to content

Commit fc1ca1f

Browse files
committed
LibreSSL 3.8.1 support
1 parent 00dacb9 commit fc1ca1f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
bindgen: false
203203
library:
204204
name: libressl
205-
version: 3.8.0
205+
version: 3.8.1
206206
name: ${{ matrix.target }}-${{ matrix.library.name }}-${{ matrix.library.version }}-${{ matrix.bindgen }}
207207
runs-on: ubuntu-latest
208208
env:

openssl-sys/build/cfgs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
5353
if libressl_version >= 0x3_07_00_00_0 {
5454
cfgs.push("libressl370");
5555
}
56+
if libressl_version >= 0x3_08_01_00_0 {
57+
cfgs.push("libressl381");
58+
}
5659
} else {
5760
let openssl_version = openssl_version.unwrap();
5861

openssl-sys/build/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ See rust-openssl documentation for more information:
273273
(3, 7, 1) => ('3', '7', '1'),
274274
(3, 7, _) => ('3', '7', 'x'),
275275
(3, 8, 0) => ('3', '8', '0'),
276+
(3, 8, 1) => ('3', '8', '1'),
276277
_ => version_error(),
277278
};
278279

@@ -314,8 +315,8 @@ fn version_error() -> ! {
314315
panic!(
315316
"
316317
317-
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3.0.0), or LibreSSL 2.5
318-
through 3.8.0, but a different version of OpenSSL was found. The build is now aborting
318+
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3), or LibreSSL 2.5
319+
through 3.8.1, but a different version of OpenSSL was found. The build is now aborting
319320
due to this version mismatch.
320321
321322
"

openssl-sys/src/crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub const CRYPTO_LOCK_SSL_CTX: c_int = 12;
106106
pub const CRYPTO_LOCK_SSL_SESSION: c_int = 14;
107107

108108
cfg_if! {
109-
if #[cfg(ossl110)] {
109+
if #[cfg(any(ossl110, libressl381))] {
110110
pub const CRYPTO_EX_INDEX_SSL: c_int = 0;
111111
pub const CRYPTO_EX_INDEX_SSL_CTX: c_int = 1;
112112
} else if #[cfg(libressl)] {

0 commit comments

Comments
 (0)