[gnutls-help] Interrupt and continue handshake from gnutls_handshake_set_post_client_hello_function()

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu May 22 08:54:35 CEST 2014


On Wed, May 21, 2014 at 11:12 AM, DEXTER <mydexterid at gmail.com> wrote:
> Hi,
>
> I'm trying to write a gnutls server where I can suspend the handshake
> procedure and then continue.
> What I'm trying to achieve is to get the SNI from the client, suspend the
> handshake, do something else depending on the SNI, then come back to the
> handshake and continue.

Hello,
 Why not do everything you need in the callback? As it is now the
callback is not designed to allow interruption as you describe it.

> The question is that is this the way one should do to continue a suspended
> handshake, or is there another way to do it?

Not that I know of. The best you can do is use the callback mechanisms.

regards,
Nikos



More information about the Gnutls-help mailing list