mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -1,5 +1,4 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
@ -214,29 +213,6 @@ TEST_F(Tls13CompatTest, EnabledHrrZeroRtt) {
|
|||
CheckForCompatHandshake();
|
||||
}
|
||||
|
||||
TEST_F(Tls13CompatTest, EnabledAcceptedEch) {
|
||||
EnsureTlsSetup();
|
||||
SetupEch(client_, server_);
|
||||
EnableCompatMode();
|
||||
InstallFilters();
|
||||
Connect();
|
||||
CheckForCompatHandshake();
|
||||
}
|
||||
|
||||
TEST_F(Tls13CompatTest, EnabledRejectedEch) {
|
||||
EnsureTlsSetup();
|
||||
// Configure ECH on the client only, and expect CCS.
|
||||
SetupEch(client_, server_, HpkeDhKemX25519Sha256, false, true, false);
|
||||
EnableCompatMode();
|
||||
InstallFilters();
|
||||
ExpectAlert(client_, kTlsAlertEchRequired);
|
||||
ConnectExpectFailOneSide(TlsAgent::CLIENT);
|
||||
client_->CheckErrorCode(SSL_ERROR_ECH_RETRY_WITHOUT_ECH);
|
||||
CheckForCompatHandshake();
|
||||
// Reset expectations for the TlsAgent dtor.
|
||||
server_->ExpectReceiveAlert(kTlsAlertCloseNotify, kTlsAlertWarning);
|
||||
}
|
||||
|
||||
class TlsSessionIDEchoFilter : public TlsHandshakeFilter {
|
||||
public:
|
||||
TlsSessionIDEchoFilter(const std::shared_ptr<TlsAgent>& a)
|
||||
|
|
@ -486,16 +462,14 @@ TEST_F(TlsConnectDatagram13, CompatModeDtlsClient) {
|
|||
|
||||
ASSERT_EQ(2U, client_records->count()); // CH, Fin
|
||||
EXPECT_EQ(ssl_ct_handshake, client_records->record(0).header.content_type());
|
||||
EXPECT_EQ(kCtDtlsCiphertext,
|
||||
(client_records->record(1).header.content_type() &
|
||||
kCtDtlsCiphertextMask));
|
||||
EXPECT_EQ(ssl_ct_application_data,
|
||||
client_records->record(1).header.content_type());
|
||||
|
||||
ASSERT_EQ(6U, server_records->count()); // SH, EE, CT, CV, Fin, Ack
|
||||
EXPECT_EQ(ssl_ct_handshake, server_records->record(0).header.content_type());
|
||||
for (size_t i = 1; i < server_records->count(); ++i) {
|
||||
EXPECT_EQ(kCtDtlsCiphertext,
|
||||
(server_records->record(i).header.content_type() &
|
||||
kCtDtlsCiphertextMask));
|
||||
EXPECT_EQ(ssl_ct_application_data,
|
||||
server_records->record(i).header.content_type());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -544,9 +518,8 @@ TEST_F(TlsConnectDatagram13, CompatModeDtlsServer) {
|
|||
ASSERT_EQ(5U, server_records->count()); // SH, EE, CT, CV, Fin
|
||||
EXPECT_EQ(ssl_ct_handshake, server_records->record(0).header.content_type());
|
||||
for (size_t i = 1; i < server_records->count(); ++i) {
|
||||
EXPECT_EQ(kCtDtlsCiphertext,
|
||||
(server_records->record(i).header.content_type() &
|
||||
kCtDtlsCiphertextMask));
|
||||
EXPECT_EQ(ssl_ct_application_data,
|
||||
server_records->record(i).header.content_type());
|
||||
}
|
||||
|
||||
uint32_t session_id_len = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue