I've been trying to get custom client extensions on client hello but I don`t know how to issue a method like get_custom_ext or similar.
Firstly we add the extension on the client side with SSL_CTX_set_custom_cli_ext
int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx, unsigned int ext_type,
custom_ext_add_cb add_cb,
custom_ext_free_cb free_cb, void *add_arg,
custom_ext_parse_cb parse_cb,
void *parse_arg)
Now the client add one extension on every client hello, but how the server could get the custom added extension properly?