Lines Matching defs:TLSConfig
65 // TLSConfig provides configuration options for a TLS context.
66 type TLSConfig struct {
72 cfg *TLSConfig
85 func NewConfig() (*TLSConfig, error) {
90 return &TLSConfig{
96 func (c *TLSConfig) Error() error {
104 func (c *TLSConfig) SetCAFile(filename string) error {
114 func (c *TLSConfig) SetCiphers(ciphers string) error {
124 func (c *TLSConfig) SetProtocols(proto ProtocolVersion) error {
132 func (c *TLSConfig) InsecureNoVerifyCert() {
137 func (c *TLSConfig) InsecureNoVerifyName() {
142 func (c *TLSConfig) SetVerify() {
147 func (c *TLSConfig) Free() {
157 func NewClient(config *TLSConfig) (*TLS, error) {