Also checking openssl source (apps/s_server.c) to find out why it
works with plain s_client, s_server, I see this:

static int s_server_session_id_context = 1; /* anything will do */

SSL_CTX_set_session_id_context(ctx,(void*)&s_server_session_id_context,
                sizeof s_server_session_id_context);

Can anybody tell me what the hell is this hack? anything will do? &int
converted to void*, when the function itself should get a const
unsigned char*? What?

On Thu, Sep 25, 2014 at 1:56 PM, DEXTER <[email protected]> wrote:
> Hi!
>
> I have an openssl server, and I'm using the
> SSL_CTX_set_tlsext_ticket_key_cb to set a callback to be able to use
> tls tickets.
>
> When the SSL_CTX_set_verify callback is not set, then it works as it should.
> But as soon as I set a verify callback (to verify the client cert) I
> this error when the client tries to connect:
>
> error:140D9115:SSL
> routines:lib(20):SSL_GET_PREV_SESSION:func(217):session id context
> uninitialized:reason(277)
>
> Anyone has any idea why this happens?
>
> Thanks.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to