"SupportTicketsWithSessionID": "We don't support session ID resumption",
"KeyUpdate-RequestACK": "TODO: first pass, this should be fixed",
"SupportedVersionSelection-TLS12": "TODO: first pass, this should be fixed",
- "DuplicateExtensionServer-TLS-TLS1": "TODO: first pass, this should be fixed",
- "DuplicateExtensionClient-TLS-TLS1": "TODO: first pass, this should be fixed",
"UnsolicitedServerNameAck-TLS-TLS1": "TODO: first pass, this should be fixed",
"TicketSessionIDLength-33-TLS-TLS1": "TODO: first pass, this should be fixed",
- "DuplicateExtensionServer-TLS-TLS11": "TODO: first pass, this should be fixed",
- "DuplicateExtensionClient-TLS-TLS11": "TODO: first pass, this should be fixed",
"UnsolicitedServerNameAck-TLS-TLS11": "TODO: first pass, this should be fixed",
"TicketSessionIDLength-33-TLS-TLS11": "TODO: first pass, this should be fixed",
- "DuplicateExtensionServer-TLS-TLS12": "TODO: first pass, this should be fixed",
- "DuplicateExtensionClient-TLS-TLS12": "TODO: first pass, this should be fixed",
"UnsolicitedServerNameAck-TLS-TLS12": "TODO: first pass, this should be fixed",
"TicketSessionIDLength-33-TLS-TLS12": "TODO: first pass, this should be fixed",
"DuplicateExtensionClient-TLS-TLS13": "TODO: first pass, this should be fixed",
- "DuplicateExtensionServer-TLS-TLS13": "TODO: first pass, this should be fixed",
"UnsolicitedServerNameAck-TLS-TLS13": "TODO: first pass, this should be fixed",
"RenegotiationInfo-Forbidden-TLS13": "TODO: first pass, this should be fixed",
"EMS-Forbidden-TLS13": "TODO: first pass, this should be fixed",
"context"
"errors"
"reflect"
+ "strings"
"testing"
)
if err != nil {
t.Fatal(err)
}
- if err := cli.conn.HandleData(QUICEncryptionLevelApplication, append([]byte{
- byte(typeKeyUpdate),
- byte(0), byte(0), byte(len(keyUpdateBytes)),
- }, keyUpdateBytes...)); !errors.Is(err, alertUnexpectedMessage) {
- t.Fatalf("key update request: got error %v, want alertUnexpectedMessage", err)
+ expectedErr := "unexpected key update message"
+ if err = cli.conn.HandleData(QUICEncryptionLevelApplication, keyUpdateBytes); err == nil {
+ t.Fatalf("key update request: expected error from post-handshake key update, got nil")
+ } else if !strings.Contains(err.Error(), expectedErr) {
+ t.Fatalf("key update request: got error %v, expected substring %q", err, expectedErr)
}
}