NewTLSConfig creates a new tls.Config from the given TLSConfig.
(cfg *TLSConfig, optFuncs ...TLSConfigOption)
| 1258 | |
| 1259 | // NewTLSConfig creates a new tls.Config from the given TLSConfig. |
| 1260 | func NewTLSConfig(cfg *TLSConfig, optFuncs ...TLSConfigOption) (*tls.Config, error) { |
| 1261 | return NewTLSConfigWithContext(context.Background(), cfg, optFuncs...) |
| 1262 | } |
| 1263 | |
| 1264 | // NewTLSConfigWithContext creates a new tls.Config from the given TLSConfig. |
| 1265 | func NewTLSConfigWithContext(ctx context.Context, cfg *TLSConfig, optFuncs ...TLSConfigOption) (*tls.Config, error) { |
searching dependent graphs…