Skip to content

Commit

Permalink
Add curl_easy_impersonate to export APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
yifeikong committed Apr 18, 2024
1 parent 7f6bf95 commit a3ea049
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
shell: msys2 {0}
run: ./win/build.sh

- name: Setup tmate session for debugging
uses: mxschmitt/action-tmate@v3

# - name: Setup tmate session for debugging
# uses: mxschmitt/action-tmate@v3
#
- uses: ilammy/msvc-dev-cmd@v1

- name: Generate lib files
Expand Down
24 changes: 24 additions & 0 deletions chrome/patches/curl-impersonate.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3440,6 +3440,18 @@ index af7ae552e..f22147e22 100644
void *backend; /* vtls backend specific props */
struct cf_call_data call_data; /* data handle used in current call */
struct curltime handshake_done; /* time when handshake finished */
diff --git a/libcurl.def b/libcurl.def
index c6c96063a..ac52a596d 100644
--- a/libcurl.def
+++ b/libcurl.def
@@ -5,6 +5,7 @@ curl_easy_escape
curl_easy_getinfo
curl_easy_header
curl_easy_init
+curl_easy_impersonate
curl_easy_nextheader
curl_easy_option_by_id
curl_easy_option_by_name
diff --git a/libcurl.pc.in b/libcurl.pc.in
index 9db6b0f89..14c2f23e0 100644
--- a/libcurl.pc.in
Expand Down Expand Up @@ -3547,6 +3559,18 @@ index 35ba19866..3bab99f62 100644
])


diff --git a/scripts/singleuse.pl b/scripts/singleuse.pl
index b8a57f8d8..63c0e7a55 100755
--- a/scripts/singleuse.pl
+++ b/scripts/singleuse.pl
@@ -51,6 +51,7 @@ my %api = (
'curl_easy_escape' => 'API',
'curl_easy_getinfo' => 'API',
'curl_easy_init' => 'API',
+ 'curl_easy_impersonate' => 'API',
'curl_easy_pause' => 'API',
'curl_easy_perform' => 'API',
'curl_easy_recv' => 'API',
diff --git a/src/Makefile.am b/src/Makefile.am
index dced53e0f..dee8a2fc3 100644
--- a/src/Makefile.am
Expand Down

0 comments on commit a3ea049

Please sign in to comment.