|
cwist
Modern C web framework with libttak runtime
|


Go to the source code of this file.
Functions | |
| cwist_error_t | cwist_app_use_ech (cwist_app *app, const char *ech_key, const char *ech_dir) |
| Enable Encrypted Client Hello (ECH) for the application. | |
Enable Encrypted Client Hello (ECH) for the application.
Enable Encrypted Client Hello (ECH) for the application.
When built against OpenSSL 3.2 or newer with ECH support (SSL_OP_ENABLE_ECH defined), this sets the ECH option on the application's SSL context. On older OpenSSL versions this is a no-op that still succeeds. The ech_key and ech_dir arguments are currently accepted but not used.
| app | Application whose SSL context is configured. Must not be NULL. |
| ech_key | Unused placeholder for a future ECH key configuration. |
| ech_dir | Unused placeholder for a future ECH directory source. |
| CWIST_ERROR_INVALID_PARAM | app is NULL. |
| 0 | Success; ECH was enabled or is unsupported on this build. |
Definition at line 28 of file ech.c.
References cap, cwist_https_context::ctx, CWIST_ERR_INT16, CWIST_ERROR_INVALID_PARAM, make_error(), cwist_app::ssl_ctx, and SSL_CTX_set_options.