Skip to content

Commit

Permalink
ECH experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed Feb 7, 2024
1 parent a3c62d9 commit 48ced27
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion curl/src/main/native/config32/curl_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,11 @@
/* if BearSSL is enabled */
/* #undef USE_BEARSSL */

/* Define to 1 to query for HTTPSRR when using DoH */
#define USE_HTTPSRR 1

/* if ECH support is available */
/* #undef USE_ECH */
#define USE_ECH 1

/* if GnuTLS is enabled */
/* #undef USE_GNUTLS */
Expand Down
5 changes: 4 additions & 1 deletion curl/src/main/native/config64/curl_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,11 @@
/* if BearSSL is enabled */
/* #undef USE_BEARSSL */

/* Define to 1 to query for HTTPSRR when using DoH */
#define USE_HTTPSRR 1

/* if ECH support is available */
/* #undef USE_ECH */
#define USE_ECH 1

/* if GnuTLS is enabled */
/* #undef USE_GNUTLS */
Expand Down
2 changes: 1 addition & 1 deletion curl/src/main/native/curl
Submodule curl updated from 5ce164 to 34af52
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(buildView());
apkPath = getApplicationInfo().sourceDir;
editText.setText("--http3-only --curves X25519Kyber https://www.cloudflare.com/cdn-cgi/trace");
editText.setText("--ech true --doh-url https://1.0.0.1/dns-query https://crypto.cloudflare.com/cdn-cgi/trace");
editText.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER));
}

Expand Down

0 comments on commit 48ced27

Please sign in to comment.