Skip to content

Add support for linking against wolfSSL provided by wolfssl-sys#45

Open
pulsastrix wants to merge 5 commits into
mainfrom
add_wolfssl
Open

Add support for linking against wolfSSL provided by wolfssl-sys#45
pulsastrix wants to merge 5 commits into
mainfrom
add_wolfssl

Conversation

@pulsastrix

Copy link
Copy Markdown
Member

This PR allows the vendored version of libcoap to link against the version of wolfSSL that is used by the wolfssl-sys crate.
This change required some modifications to wolfssl-sys in order to expose the library paths to us and enable features necessary for libcoap, which is why it currently uses our own fork of wolfssl-sys.

Closes #29.

@pulsastrix pulsastrix added the enhancement New feature label Mar 3, 2025
@pulsastrix pulsastrix requested a review from JKRhb March 3, 2025 18:31
@pulsastrix pulsastrix self-assigned this Mar 3, 2025
@github-actions

github-actions Bot commented Mar 3, 2025

Copy link
Copy Markdown

Workflow Status Report

Generated for commit 18a3214 on Sat Jul 12 10:02:36 UTC 2025.

Test and Analyze
Docs, Coverage Report and PR Updates

In case of failure, clippy warnings and rustfmt changes (if any) will be indicated as CI check warnings in the file comparison view.

Documentation: Read Online Download

Coverage Report: Read Online Download

Note: Online versions of documentation and coverage reports may not be available indefinitely, especially after the pull request was merged.

Code Coverage Report

Coverage

Coverage target is 80%.

Expand to view coverage statistics

@JKRhb JKRhb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just stumbled upon two tiny spots, otherwise LGTM :)

Comment thread libcoap-sys/build/build_system/vendored.rs
Comment thread libcoap-sys/build/build_system/vendored.rs
Comment thread libcoap-sys/Cargo.toml Outdated
openssl-sys = { version = "^0.9.74", optional = true }
mbedtls-sys-auto = { version = "^2.26", optional = true }
tinydtls-sys = { version = "^0.2.0", default-features = false, optional = true }
wolfssl-sys = { version = "2.0.0", git = "https://github.com/namib-project/wolfssl-rs.git", branch = "add_sys_cargo_metadata", optional = true, features = ["aesccm", "hmac", "psk", "opensslall", "ex_data", "alpn", "dh"] }

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave this comment here to make sure that we don't merge this until the required changes to wolfssl-sys have been upstreamed.

See expressvpn/wolfssl-rs#225.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wolfSSL support

2 participants