This is an automated email from the ASF dual-hosted git repository. yuanz pushed a commit to branch release-v0.4.0 in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
commit 5a63f5e7ea1906989dd66f569dc559a09e2dffbe Author: Yuan Zhuang <[email protected]> AuthorDate: Mon Mar 10 03:50:19 2025 +0000 examples/tls_client-rs: update the comment for clarity --- examples/tls_client-rs/ta/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/tls_client-rs/ta/src/main.rs b/examples/tls_client-rs/ta/src/main.rs index 3065e11..9504bd0 100644 --- a/examples/tls_client-rs/ta/src/main.rs +++ b/examples/tls_client-rs/ta/src/main.rs @@ -63,7 +63,9 @@ fn invoke_command(cmd_id: u32, _params: &mut Parameters) -> Result<()> { } } -// copied from https://github.com/rustls/rustls/blob/v/0.21.0/examples/src/bin/simpleclient.rs +// This code is based on the Rustls example: +// https://github.com/rustls/rustls/blob/v/0.21.0/examples/src/bin/simpleclient.rs +// with modifications to demonstrate Rustls usage in the TA. fn tls_client() { let mut root_store = RootCertStore::empty(); root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
