Re: [openssl-dev] ssl_sess.c : compilation error

2015-06-09 Thread Salz, Rich
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

Re: [openssl-dev] ssl_sess.c : compilation error

2015-06-08 Thread Daniel Kahn Gillmor
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

Re: [openssl-dev] ssl_sess.c : compilation error

2015-06-07 Thread Kurt Roeckx
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

Re: [openssl-dev] ssl_sess.c : compilation error

2015-06-07 Thread Zvi Vered
-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

Re: [openssl-dev] ssl_sess.c : compilation error

2015-06-06 Thread Kurt Roeckx
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

[openssl-dev] ssl_sess.c : compilation error

2015-06-06 Thread Zvi Vered
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 :