Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to offical release rustls and add no_std support #302

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

gaojiaqi7
Copy link
Contributor

This PR should close #297

src/crypto/src/rustls_impl/tls.rs Fixed Show fixed Hide fixed
src/crypto/src/rustls_impl/tls.rs Fixed Show fixed Hide fixed
src/crypto/src/rustls_impl/tls.rs Fixed Show fixed Hide fixed
src/crypto/src/rustls_impl/tls.rs Fixed Show fixed Hide fixed
@gaojiaqi7 gaojiaqi7 marked this pull request as draft September 25, 2024 01:45
@gaojiaqi7 gaojiaqi7 force-pushed the 0924/support_no_std_rustls branch 3 times, most recently from 2f32b27 to 11a24a9 Compare September 27, 2024 02:04
rustls provides `Unbuffered` implementations of server and client
connections that can be used in `no_std`.

This patch implements two helper struct named `TlsServerConnection` and
`TlsClientConnection` which provide much simpler interfaces.

Crate `sys_time` is used to realize a `TimeProvider` and `rust-std-stub`
is kept to provide `io::Read` and `io::Write` traits.

Signed-off-by: Jiaqi Gao <[email protected]>
As we no longer need to maintain the patches for rustls, remove the
submodule and patch file.

Signed-off-by: Jiaqi Gao <[email protected]>
The binary size is increasing after upgrading rustls dependency, the
current image configuration does not have enough space to hold debug
migtd binary. Setting the strip as true in dev profile helps us decrease
the binary size. This can be recovered after large payload is supported
by td-shim.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 marked this pull request as ready for review September 30, 2024 01:41
@jyao1 jyao1 merged commit d29e38f into intel:main Sep 30, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate no_std rustls
2 participants