-
Notifications
You must be signed in to change notification settings - Fork 140
https://github.com/Tencent/tquic/issues/153 #452
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
base: develop
Are you sure you want to change the base?
https://github.com/Tencent/tquic/issues/153 #452
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #452 +/- ##
===========================================
- Coverage 95.36% 95.28% -0.09%
===========================================
Files 50 50
Lines 34238 34273 +35
===========================================
+ Hits 32651 32656 +5
- Misses 1587 1617 +30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces mutual authentication configurations for both client and server TLS setups while slightly improving error handling paths.
- Adds a new function for mutual authentication client configuration.
- Adds a new function for mutual authentication server configuration.
- Slightly refactors variable typing and error handling in existing functions.
| ) -> Result<Self> { | ||
| if cert_file.is_empty() || key_file.is_empty() { | ||
| return Err(Error::TlsFail(format!( | ||
| "cert_file({:?}) key_file({:?})", |
Copilot
AI
Jun 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider improving the error message here to clearly state that both certificate and key files are required, e.g., 'Certificate file and key file must be provided, but received cert_file: {:?}, key_file: {:?}'.
| "cert_file({:?}) key_file({:?})", | |
| "Certificate file and key file must be provided, but received cert_file: {:?}, key_file: {:?}", |
| Ok(tls_config) | ||
| } | ||
|
|
||
| pub fn new_mutual_authentication_client_config( |
Copilot
AI
Jun 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a doc comment for 'new_mutual_authentication_client_config' to explain its purpose and usage, aligning its documentation with that of 'new_server_config' for clarity.
No description provided.