[openssl-users] Example on SSL_SESSION_set_ex_data?

Salz, Rich rsalz at akamai.com
Wed Aug 24 19:56:54 UTC 2016


> BLAH b;
> b.blah = 12345;
> 
> SSL_SESSION *session = SSL_get_session(ssl);
> SSL_SESSION_set_ex_data(session, my_data_idx, &b);
> SSL_set_session(ssl, sess);

Is "b" a stack variable?  You should malloc it.

--  
Senior Architect, Akamai Technologies
IM: richsalz at jabber.at Twitter: RichSalz


More information about the openssl-users mailing list