From 53c99d40f60c83b0992898a460f09a555e94a99c Mon Sep 17 00:00:00 2001 From: Yifei Kong Date: Wed, 15 Jan 2025 21:03:20 +0800 Subject: [PATCH] Fix curves --- chrome/patches/curl-impersonate.patch | 5 +++-- tests/signatures/firefox_133.0.3_linux.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/chrome/patches/curl-impersonate.patch b/chrome/patches/curl-impersonate.patch index c6be1838..201fcbbc 100644 --- a/chrome/patches/curl-impersonate.patch +++ b/chrome/patches/curl-impersonate.patch @@ -1536,10 +1536,10 @@ index 80e183480..8ee390b7e 100644 * Store nghttp2 version info in this buffer. diff --git a/lib/impersonate.c b/lib/impersonate.c new file mode 100644 -index 000000000..6ff5efcd7 +index 000000000..57890b12a --- /dev/null +++ b/lib/impersonate.c -@@ -0,0 +1,1233 @@ +@@ -0,0 +1,1234 @@ +#include "curl_setup.h" + +#include @@ -2756,6 +2756,7 @@ index 000000000..6ff5efcd7 + "Priority: u=0, i", + "Te: trailers" + }, ++ .curves = "X25519MLKEM768:X25519:P-256:P-384:P-521:ffdhe2048:ffdhe3072", + .alpn = true, + .http2_settings = "1:65536;2:0;4:131072;5:16384", + .http2_window_update = 12517377, diff --git a/tests/signatures/firefox_133.0.3_linux.yaml b/tests/signatures/firefox_133.0.3_linux.yaml index 6666dcc2..494dd183 100644 --- a/tests/signatures/firefox_133.0.3_linux.yaml +++ b/tests/signatures/firefox_133.0.3_linux.yaml @@ -65,7 +65,7 @@ signature: type: extended_master_secret - length: 1 type: renegotiation_info - - length: 14 + - length: 16 supported_groups: - 4588 - 29