[openssl-dev] How to get SSL version from SSL_SESSION using OpenSSL-1.1.x?

TJ Saunders tj at castaglia.org
Thu May 26 22:43:00 UTC 2016



On Thu, May 26, 2016, at 14:52, Matt Caswell wrote:

> > One of the modules maintains the server-side SSL session cache,
> > comprised of SSL_SESSION objects.  For debugging purposes, there's a
> > tool to dump out the sessions in the cache.  I had initially used
> > SSL_SESSION_print() for this dump utility, but that prints out more of
> > the session data (e.g. the master key) than I'd wanted.  Thus I ended up
> > writing my own code for printing out the fields of the SSL_SESSION which
> > I thought would be of interest -- including the protocol version of the
> > SSL_SESSION.
> 
> That sounds fairly reasonable. I suggest raising a github pull request
> to add the accessor (or just an issue if you prefer).

Done; see:

  https://github.com/openssl/openssl/pull/1135

Thanks,
TJ



More information about the openssl-dev mailing list