From 4466f145d67b7e343309347b4d1f59f10a3590af Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 1 Nov 2024 01:48:25 -0400 Subject: [PATCH] std.crypto.tls: support more key share params This condition is already checked less restrictively in `KeyShare.exchange`. --- lib/std/crypto/tls/Client.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/std/crypto/tls/Client.zig b/lib/std/crypto/tls/Client.zig index c220c890f8..dc15c7d813 100644 --- a/lib/std/crypto/tls/Client.zig +++ b/lib/std/crypto/tls/Client.zig @@ -636,7 +636,6 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In const curve_type = hsd.decode(u8); if (curve_type != 0x03) return error.TlsIllegalParameter; // named_curve const named_group = hsd.decode(tls.NamedGroup); - if (named_group != .secp256r1) return error.TlsIllegalParameter; const key_size = hsd.decode(u8); try hsd.ensure(key_size); const server_pub_key = hsd.slice(key_size);