[openssl-dev] ssl_sess.c : compilation error

Zvi Vered veredz72 at gmail.com
Sat Jun 6 21:17:06 UTC 2015


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 : 

ctx->new_session_cb

uses a parameter of the return value. How this is possible ?

I’m trying to compile this code using diab compiler for vxworks6.3 and 
I have a syntax error.

Using this compiler for vxWorks 6.9 (newer compiler) gives no syntax 
error.

Is there another way to write this code ?

Best regards,
Z.V


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20150607/77cdf9ab/attachment.html>


More information about the openssl-dev mailing list