> While this may be reasonable advice for SNI, I'm not sure that
> this is correct for ALPN. I don't think it is actually possible
> to set the selected ALPN *without* using the ALPN callback. At
> least I can't see a way.
Correct, I wondered why I still used both callbacks.
But I also know
On 29/07/2022 17:21, Angus Robertson - Magenta Systems Ltd wrote:
I don't understand how to write the callback functions some of
the OpenSSL ALPN functions expect, and the manual really isn't
helping there either, so I'd like some help.
Use SSL_CTX_set_client_hello_cb to set a SSL_client_hel
*,SSL_client_hello_cb_fn,void *)': cannot convert argument 2 from 'int (__cdecl
*)(SSL *,int,void *)' to 'SSL_client_hello_cb_fn'
Someone please help, if possible. Thanks.
Original Message
*Subject:* Re: SSL_CTX_set_alpn_select_cb and Other OpenSSL A
> I don't understand how to write the callback functions some of
> the OpenSSL ALPN functions expect, and the manual really isn't
> helping there either, so I'd like some help.
Use SSL_CTX_set_client_hello_cb to set a SSL_client_hello_cb_fn
function, which you can parse to get TLSEXT_TYPE_server