[gnutls-devel] GnuTLS | Support for ECH (encrypted client hello) (!1748)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Jul 29 12:10:15 CEST 2023




Daiki Ueno started a new discussion on lib/system/ech.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1748#note_1492769588

> +
> +#include <gnutls_int.h>
> +#include <gnutls/gnutls.h>
> +#include <ext/ech_config.h>
> +#include <ext/ech_utils.h>
> +
> +/**
> + * gnutls_load_ech_configs:
> + * @data: pem encoded serialized ech configs
> + * @session: gnutls_session_t structure 
> + *
> + * This function intialize the configs_list and stores deserialized configs list
> + * within the session.
> +**/
> +
> +int gnutls_load_ech_configs(gnutls_datum_t *data, gnutls_session_t session)

I would suggest having 4 functions:
```c
int gnutls_ech_config_list_init(gnutls_ech_config_list_t *configs);
int gnutls_ech_config_list_parse(gnutls_ech_config_list_t configs, const gnutls_datum_t *pem);
int gnutls_session_set_ech_config(gnutls_session_t session, const gnutls_ech_config_list_t configs);
void gnutls_ech_config_list_deinit(gnutls_ech_config_list_t configs);
```
I guess that way testing those would be a little easier.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1748#note_1492769588
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20230729/0b4e793f/attachment-0001.html>


More information about the Gnutls-devel mailing list