[openssl-users] help : tls1.3 : tls1.2 test case failing after integration of openssl-1.1.1-pre7

Matt Caswell matt at openssl.org
Tue Jun 19 15:23:33 UTC 2018



On 19/06/18 16:18, Chakrapani Reddy wrote:
> Hello  ,
> 
> Started using openssl-1.1.1-pre7 (pre-release 7) in my lab. Compiled the
> code in Linux successfully. When I run the tls1.2 test case observed
> that it's failing with openssl-1.1.1-pre7 but the same test case is
> passing with the openssl-1.1.0g.
> 
> Sample code :
>     SSL_CTX *ctx = SSL_CTX_new(TLSv1_2_method());
>     if (ctx==0) {
>         return(false);
>     }
>     if ((ssl_session = SSL_new(ctx))==0) {
>         return(false);
>     }
>     if (ssl_get_new_session(ssl_session, 1)==0)  {
>         return(false);
>     }
>     if(ssl_session->session == NULL)
>     {
>         printf("++++++++++ SSL_new : ssl_session->session is NULL
> +++++++++");
>     }
>     if(ssl_session->s3 == NULL)
>     {
>         printf("+++++++++ SSL_new : ssl_session->s3 is NULL +++++++++");
>     }
> 
> Below are the observations:
> * SSL_new() returned the valid pointer but s3 member  as NULL.
> * ssl_get_new_session() is giving the session member as NULL.

The SSL object is an opaque type, so you are not supposed to access
those members. Given that the structure definition is not in the public
header files, have you included an internal OpenSSL header file in your
project? If so, that is likely to be your problem.

Matt



More information about the openssl-users mailing list