The only mentions of SSL_CTX_sess_get_new_cb are packages that bundle
or replicate OpenSSL code:
It's not surprising; code that sets the callback should first get and store the
old callback so that they can explicitly chain them. But that's not
well-explained, fragile with dynamic libraries
On Sun 2015-06-07 16:16:24 -0400, Kurt Roeckx wrote:
You can set a callback on the creation of a new session. See the
SSL_CTX_sess_set_new_cb() manpage. The SSL_CTX_sess_get_new_cb()
get function returns that callback function back.
There are no internal users in OpenSSL as far as I can
On Sun, Jun 07, 2015 at 09:36:20PM +0300, Zvi Vered wrote:
Hi Kurt,
I think I have a C problem.
I do not understand how the compiler enable to use the pointer ctx.
ctx is not declared in the routine parameters nor in the routine body.
As I already explained, ctx *is* the only parameter to
-new_session_cb;
}
Is it part of the ssl infrastructure or for external user who links with ssl
library ?
Best reagrds,
Zvika
-Original Message-
From: Kurt Roeckx
Sent: Sunday, June 07, 2015 12:51 AM
To: openssl-dev@openssl.org
Subject: Re: [openssl-dev] ssl_sess.c : compilation
On Sun, Jun 07, 2015 at 12:17:06AM +0300, Zvi Vered wrote:
Dear Members,
In the file openssl-1.0.1g\ssl\ssl_sess.c contains the following code:
int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *sess)
{
return ctx-new_session_cb;
}
The return value of this
Dear Members,
In the file openssl-1.0.1g\ssl\ssl_sess.c contains the following code:
int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *sess)
{
return ctx-new_session_cb;
}
The return value of this routine is a “pointer to function”.
But the code :