-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QST-47: Add OpenSSL 3 and oqs-provider to Sandwich.
The following integration tests have been written: - `depth_exceeded.rs`: - Verify the `max_verify_depth` parameter from the protobuf configuration - Make sure that the `pathlen` in `basicConstraints` is honored - Make sure `Tunnel::handshake()` returns an `HandshakeError::HANDSHAKEERROR_DEPTH_EXCEEDED`. - `expired_certificate.rs`: - Verify that an expired certificate leads to an handshake error. - Make sure `Tunnel::handshake()` returnas an `HandshakeError::HANDSHAKEERROR_CERTIFICATE_EXPIRED`. - Make sure the `allow_expired_certificate` parameter from the X509Verifier protobuf configuration works. - `mtls.rs`: - Verify that mTLS works (both peers issue a CERT_REQ) - Verify that `Tunnel::handshake()` returns an error in the case where the client does not expose any certificate. - `subject_alt_name_dns.rs`: - Verify that the SAN configuration is working with a DNS entry. - Verify that it works with wildcard entries. - Verify that `Tunnel::handshake()` returns an `HandshakeError::HANDSHAKEERROR_INVALID_SERVER_NAME` when SAN does not match the expected DNS hostname. - `subject_alt_names_email.rs`: - Same as `subject_alt_names_dns` but with an email address, and no wildcard. - `subject_alt_names_ip_address.rs`: - Same as `subject_alt_name_dns.rs` but with IP addresses, both IPv4 and IPv6, no wildcard. - `tls_12.rs`: - Make sure TLS 1.2 works. - Make sure `Tunnel::handshake()` returns an `HandshakeError::HANDSHAKEERROR_UNSUPPORTED_PROTOCOL` if the rmeote peer does not support TLS 1.2. - `tls_13_ciphersuites.rs`: - Verify the TLS 1.3 configuration with ciphersuites. - Make sure `Tunnel::handshake()` returns an `HandshakeError::HANDSHAKEERROR_NO_SHARED_CIPHER` if no cipher could be negociated between peers. - `tls_13_ke.rs` - Same as `tls_13_ciphersuites.rs` but with KEs (Key Exchange algorithms). - Make sure `Tunnel::handshake()` returns an `HandshakeError::HANDSHAKEERROR_NO_SUITABLE_KEY_SHARE` if no cipher could be negociated between peers. - `tls_classical.rs`: - Make sure TLS 1.3 works with classical cryptographic algorithms (`classical != quantum-resistant`). - Make sure read and write works. - `tls_quantum_resistant.rs`: - Make sure TLS 1.3 works using quantum-resistant cryptographic algorithms (`classical != quantum-resistant`). - Make sure read and write works. - Make sure the compliance field from the protobuf configuration is honored by verifying that the tunnel creation process fails if a classical KE is provided when only quantum-resistant algoritms are allowed. - `x509_strict.rs`: - Make sure we do not allow broken certificates, i.e. intermediate certificates that do not have a `keyUsage` X509 extension with at least `keyCertSign`. GitOrigin-RevId: 251d0c2deebdb1e2341dde123ffed995a93552a2
- Loading branch information
thomas
committed
Dec 8, 2023
1 parent
1b99b84
commit 9b580a9
Showing
69 changed files
with
15,298 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.