sum7
/
yaja
Archived
1
0
Fork 0
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.
yaja/client/tls.go

12 lines
222 B
Go
Raw Permalink Normal View History

2018-02-10 13:34:42 +01:00
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
}