Merge pull request #1619 from richmoore/session-tls-version

Add support for querying the negotiated TLS/SSL version.