This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
package client
|
|
|
|
import "crypto/tls"
|
|
|
|
func (client *Client) TLSConnectionState() *tls.ConnectionState {
|
|
if tlsconn, ok := client.conn.(*tls.Conn); ok {
|
|
state := tlsconn.ConnectionState()
|
|
return &state
|
|
}
|
|
return nil
|
|
}
|