<div dir="ltr"><div>Can someone give an example on how to use the SSL_SESSION_set_ex_data?</div><div>I'm trying to set custom information in apache mod_ssl and after trying many different ways, but can't get it to stick...</div><div><br></div><div><div>struct st_blah_t {</div><div>  int blah;</div><div>} BLAH;</div></div><div><br></div><div>my_data_idx = SSL_SESSION_get_ex_new_index(0, "BLAH", NULL, NULL, NULL);</div><div><br></div><div>BLAH b;<br></div><div>b.blah = 12345;</div><div><br></div><div>SSL_SESSION *session = SSL_get_session(ssl);</div><div>SSL_SESSION_set_ex_data(session, my_data_idx, &b);</div><div>SSL_set_session(ssl, sess);<br></div><div><br></div><div>Am I using the functions right?</div></div>