-
Notifications
You must be signed in to change notification settings - Fork 711
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
test: pin tests to TLS 1.2/TLS 1.3 policy #4926
Changes from all commits
1b0e18d
5f256b1
6de777d
740f5eb
5c30cde
37deb35
280eee5
2292d02
7b92c43
255156d
b67949c
3ff5207
371ceec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,13 +63,14 @@ mod tests { | |
} | ||
|
||
#[test] | ||
fn resume_session() -> Result<(), Box<dyn Error>> { | ||
fn resume_tls12_session() -> Result<(), Box<dyn Error>> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a test named |
||
let keypair = CertKeyPair::default(); | ||
|
||
// Initialize config for server with a ticket key | ||
let mut server_config_builder = Builder::new(); | ||
server_config_builder | ||
.add_session_ticket_key(&KEYNAME, &KEY, SystemTime::now())? | ||
.set_security_policy(&security::TESTING_TLS12)? | ||
.load_pem(keypair.cert(), keypair.key())?; | ||
let server_config = server_config_builder.build()?; | ||
|
||
|
@@ -83,6 +84,7 @@ mod tests { | |
.set_session_ticket_callback(handler.clone())? | ||
.trust_pem(keypair.cert())? | ||
.set_verify_host_callback(InsecureAcceptAllCertificatesHandler {})? | ||
.set_security_policy(&security::TESTING_TLS12)? | ||
.set_connection_initializer(handler)?; | ||
let client_config = client_config_builder.build()?; | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test were not written to work with a fips security policy so this maintains the current behavior by pinning test to "default_tls13". |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This tests the following ecc preferences and requires a security policy which supports all of them (aka non-FIPS). Once we switch to TLS1.3 by default, it will be possible to use a FIPS TLS1.3 policy by default, which breaks this test.
|
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.
These were mean to only support TLS 1.2. We toggle on fips support to maintain current behavior.