Skip to content

Commit 40fb6e0

Browse files
authored
Merge pull request #20 from gasbytes/release
Release
2 parents bcef572 + a239314 commit 40fb6e0

File tree

9 files changed

+35
-28
lines changed

9 files changed

+35
-28
lines changed

.github/workflows/macos-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: macOS Build and Test
22

33
on:
44
push:
5-
branches: [ '*' ]
5+
branches: [ 'main' ]
66
pull_request:
7-
branches: [ '*' ]
7+
branches: [ 'main' ]
88

99
jobs:
1010
macos-build:

.github/workflows/ubuntu-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Ubuntu Build and Test
22

33
on:
44
push:
5-
branches: [ '*' ]
5+
branches: [ 'main' ]
66
pull_request:
7-
branches: [ '*' ]
7+
branches: [ 'main' ]
88

99
jobs:
1010
ubuntu-build:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/rustls-wolfcrypt-provider/Cargo.lock
33
/wolfcrypt-rs/target
44
/wolfcrypt-rs/Cargo.lock
5-
/wolfcrypt-rs/wolfssl-5.7.4-stable/
5+
/wolfcrypt-rs/wolfssl-*/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ provider itself operates independently of `std`.
77

88
## Status
99

10-
This is in an alpha stage, particularly because the Rustls API is not yet stable.
11-
This code currently works with Rustls = 0.23.16.
10+
This is in an alpha stage, particularly because the Rustls API is not yet stable.
11+
This code currently works with Rustls = 0.23.22.
1212

1313
## Repo Structure
1414

rustls-wolfcrypt-provider/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
rustls = { version = "0.23.18", default-features = false, features = ["tls12"] }
7+
rustls = { version = "0.23.22", default-features = false, features = ["tls12"] }
88
chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc"] }
99
der = { version = "0.7", default-features = false }
1010
ecdsa = { version = "0.16.9", default-features = false, features = ["alloc"] }
@@ -16,9 +16,9 @@ sha2 = { version = "0.10", default-features = false }
1616
signature = { version = "2", default-features = false }
1717
webpki = { package = "rustls-webpki", version = "0.102", features = ["alloc"], default-features = false }
1818
foreign-types = { version = "0.5.0", default-features = false }
19-
rustls-pki-types = { version = "1.10.0", default-features = false }
20-
log = { version = "0.4.22", default-features = false }
21-
env_logger = { version = "0.11.5", default-features = false }
19+
rustls-pki-types = { version = "1.11.0", default-features = false }
20+
log = { version = "0.4.25", default-features = false }
21+
env_logger = { version = "0.11.6", default-features = false }
2222
wolfcrypt-rs = { path = "../wolfcrypt-rs" }
2323
rustls-pemfile = { version = "2.2.0", default-features = false }
2424
hex = { version = "0.4.3", default-features = false, features = ["alloc"]}
@@ -33,9 +33,9 @@ hex-literal = "0.4.1"
3333
[dev-dependencies]
3434
rcgen = { version = "0.13" }
3535
serial_test = { version = "3.2.0", default-features = false }
36-
tokio = { version = "1.41", features = ["macros", "rt", "net", "io-util", "io-std"], default-features = false }
36+
tokio = { version = "1.43", features = ["macros", "rt", "net", "io-util", "io-std"], default-features = false }
3737
webpki-roots = { version = "0.26", default-features = false }
38-
rustls = { version = "0.23.18", features = ["std", "tls12"] }
38+
rustls = { version = "0.23.22", features = ["std", "tls12"] }
3939
rustls-pemfile = { version = "2.2.0", default-features = false, features = ["std"]}
4040

4141
[features]

rustls-wolfcrypt-provider/tests/e2e.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ fn init_thread_pool() {
5959
* Starts background job for wolfssl server (localhost:4443).
6060
* */
6161
fn start_wolfssl_server(current_dir_string: String, tls_version: &str) -> Child {
62-
if let Err(e) = env::set_current_dir("../wolfcrypt-rs/wolfssl-5.7.4-stable/") {
62+
if let Err(e) = env::set_current_dir("../wolfcrypt-rs/wolfssl-5.7.6-stable/") {
6363
panic!("Error changing directory: {}", e);
6464
} else {
65-
println!("Changed directory to wolfssl-5.7.4-stable.");
65+
println!("Changed directory to wolfssl-5.7.6-stable.");
6666

6767
Command::new("./examples/server/server")
6868
.arg("-d")

wolfcrypt-rs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
std = []
88

99
[build-dependencies]
10-
bindgen = "0.70.1"
10+
bindgen = "0.71.1"
1111

1212
[profile.release]
1313
strip = true

wolfcrypt-rs/build.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::process::Command;
99
fn main() {
1010
// We check if the release was already fetched, if not,
1111
// we fetch it and setup it.
12-
if fs::metadata("wolfssl-5.7.4-stable").is_err() {
12+
if fs::metadata("wolfssl-5.7.6-stable").is_err() {
1313
setup_wolfssl();
1414
}
1515

@@ -40,8 +40,8 @@ fn setup_wolfssl() {
4040
let output = Command::new("curl")
4141
.arg("-L")
4242
.arg("-o")
43-
.arg("wolfssl-5.7.4-stable.zip")
44-
.arg("https://github.com/wolfSSL/wolfssl/archive/refs/tags/v5.7.4-stable.zip")
43+
.arg("wolfssl-5.7.6-stable.zip")
44+
.arg("https://github.com/wolfSSL/wolfssl/archive/refs/tags/v5.7.6-stable.zip")
4545
.output()
4646
.expect("Failed to execute curl command");
4747

@@ -50,25 +50,25 @@ fn setup_wolfssl() {
5050

5151
// Step 2: Unzip the downloaded file
5252
let output = Command::new("unzip")
53-
.arg("wolfssl-5.7.4-stable.zip")
53+
.arg("wolfssl-5.7.6-stable.zip")
5454
.output()
5555
.expect("Failed to execute unzip command");
5656

5757
if output.status.success() {
5858
println!("Unzipping completed successfully.");
5959

6060
// Step 3: Remove the ZIP file
61-
if let Err(e) = fs::remove_file("wolfssl-5.7.4-stable.zip") {
61+
if let Err(e) = fs::remove_file("wolfssl-5.7.6-stable.zip") {
6262
eprintln!("Error removing ZIP file: {}", e);
6363
} else {
6464
println!("Removed ZIP file successfully.");
6565
}
6666

6767
// Step 4: Change the current working directory to the unzipped folder
68-
if let Err(e) = env::set_current_dir("wolfssl-5.7.4-stable") {
68+
if let Err(e) = env::set_current_dir("wolfssl-5.7.6-stable") {
6969
eprintln!("Error changing directory: {}", e);
7070
} else {
71-
println!("Changed directory to wolfssl-5.7.4-stable.");
71+
println!("Changed directory to wolfssl-5.7.6-stable.");
7272

7373
// Step 5: Execute ./autogen.sh
7474
let output = Command::new("./autogen.sh")
@@ -151,6 +151,6 @@ fn setup_wolfssl() {
151151
if let Err(e) = env::set_current_dir("../") {
152152
eprintln!("Error changing directory: {}", e);
153153
} else {
154-
println!("Changed directory to wolfssl-5.7.4-stable.");
154+
println!("Changed directory to wolfssl-5.7.6-stable.");
155155
}
156156
}

wolfcrypt-rs/src/bindings.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
/*
2-
* These are used to suppress all the errors that rust complains
3-
* about our symbols and/or macro (since they don't follow rust's style
4-
* convention).
5-
* */
2+
* Allow attributes to suppress warnings in bindgen-generated code.
3+
* These warnings arise from:
4+
* - Naming conventions that don't match Rust style (e.g. from C symbols)
5+
* - Auto-generated unsafe code patterns
6+
* - Type/casting patterns common in C FFI but discouraged in pure Rust
7+
*
8+
* Since this code is auto-generated, these warnings cannot be fixed manually
9+
* and must be suppressed.
10+
*/
611
#![allow(dead_code)]
712
#![allow(non_upper_case_globals)]
813
#![allow(non_camel_case_types)]
@@ -11,4 +16,6 @@
1116
#![allow(clippy::upper_case_acronyms)]
1217
#![allow(clippy::too_many_arguments)]
1318
#![allow(improper_ctypes)]
19+
#![allow(clippy::missing_safety_doc)]
20+
#![allow(clippy::ptr_offset_with_cast)]
1421
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

0 commit comments

Comments
 (0)