Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db109f7

Browse files
committed
Merge pull request #2498 from rust-openssl/botovq-libressl-4.2
2 parents 1ce898e + 1280087 commit db109f7

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,17 @@ jobs:
195195
bindgen: true
196196
library:
197197
name: libressl
198-
version: 3.9.2
198+
version: 4.0.0
199199
- target: x86_64-unknown-linux-gnu
200200
bindgen: true
201201
library:
202202
name: libressl
203-
version: 4.0.0
203+
version: 4.1.0
204204
- target: x86_64-unknown-linux-gnu
205205
bindgen: true
206206
library:
207207
name: libressl
208-
version: 4.1.0
208+
version: 4.2.0
209209
- target: x86_64-unknown-linux-gnu
210210
bindgen: false
211211
library:
@@ -215,17 +215,17 @@ jobs:
215215
bindgen: false
216216
library:
217217
name: libressl
218-
version: 3.9.2
218+
version: 4.0.0
219219
- target: x86_64-unknown-linux-gnu
220220
bindgen: false
221221
library:
222222
name: libressl
223-
version: 4.0.0
223+
version: 4.1.0
224224
- target: x86_64-unknown-linux-gnu
225225
bindgen: false
226226
library:
227227
name: libressl
228-
version: 4.1.0
228+
version: 4.2.0
229229
- target: x86_64-unknown-linux-gnu
230230
bindgen: false
231231
library:

openssl-sys/build/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ See rust-openssl documentation for more information:
435435
(4, 0, _) => ('4', '0', 'x'),
436436
(4, 1, 0) => ('4', '1', '0'),
437437
(4, 1, _) => ('4', '1', 'x'),
438+
(4, 2, _) => ('4', '2', 'x'),
438439
_ => version_error(),
439440
};
440441

@@ -474,7 +475,7 @@ fn version_error() -> ! {
474475
"
475476
476477
This crate is only compatible with OpenSSL (version 1.0.2 through 1.1.1, or 3), or LibreSSL 3.4
477-
through 4.1.x, but a different version of OpenSSL was found. The build is now aborting
478+
through 4.2.x, but a different version of OpenSSL was found. The build is now aborting
478479
due to this version mismatch.
479480
480481
"

openssl/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn main() {
3535
println!("cargo:rustc-check-cfg=cfg(libressl390)");
3636
println!("cargo:rustc-check-cfg=cfg(libressl400)");
3737
println!("cargo:rustc-check-cfg=cfg(libressl410)");
38+
println!("cargo:rustc-check-cfg=cfg(libressl420)");
3839

3940
println!("cargo:rustc-check-cfg=cfg(ossl101)");
4041
println!("cargo:rustc-check-cfg=cfg(ossl102)");
@@ -110,6 +111,9 @@ fn main() {
110111
if version >= 0x4_01_00_00_0 {
111112
println!("cargo:rustc-cfg=libressl410");
112113
}
114+
if version >= 0x4_02_00_00_0 {
115+
println!("cargo:rustc-cfg=libressl420");
116+
}
113117
}
114118

115119
if let Ok(vars) = env::var("DEP_OPENSSL_CONF") {

openssl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Bindings to OpenSSL
22
//!
33
//! This crate provides a safe interface to the popular OpenSSL cryptography library. OpenSSL versions 1.0.2 through
4-
//! 3.x.x and LibreSSL versions 3.4 through 4.1.x are supported.
4+
//! 3.x.x and LibreSSL versions 3.4 through 4.2.x are supported.
55
//!
66
//! # Building
77
//!

0 commit comments

Comments
 (0)