DemesneGH commented on code in PR #221:
URL:
https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/221#discussion_r2278681004
##########
examples/tls_server-rs/ta/src/main.rs:
##########
@@ -131,36 +144,44 @@ pub fn do_tls_write(session_id: u32, buf: &mut [u8]) ->
usize {
rc
}
-fn make_config() -> Arc<rustls::ServerConfig> {
- let certs = load_certs();
- let privkey = load_private_key();
- let config = rustls::ServerConfig::builder()
- .with_safe_defaults()
+fn make_config() -> anyhow::Result<Arc<rustls::ServerConfig>> {
+ trace_println!("[+] Creating crypto provider");
+ let crypto_provider = Arc::new(rustls_provider::optee_crypto_provider());
+
+ trace_println!("[+] Creating time provider");
+ let time_provider = Arc::new(rustls_provider::optee_time_provider());
+
+ let certs = load_certs().context("Failed to load certificates")?;
+ trace_println!("[+] Loaded {} certificates", certs.len());
+
+ let private_key = load_private_key().context("Failed to load private
key")?;
+ trace_println!(
Review Comment:
removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]