"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/types/tls.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

tls.go  (traefik-v2.3.2.src):tls.go  (traefik-v2.3.3.src)
skipping to change at line 18 skipping to change at line 18
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/traefik/traefik/v2/pkg/log" "github.com/traefik/traefik/v2/pkg/log"
) )
// ClientTLS holds TLS specific configurations as client // ClientTLS holds TLS specific configurations as client
// CA, Cert and Key can be either path or file contents. // CA, Cert and Key can be either path or file contents.
type ClientTLS struct { type ClientTLS struct {
CA string `description:"TLS CA" json:"ca,omitempty" toml: "ca,omitempty" yaml:"ca,omitempty"` CA string `description:"TLS CA" json:"ca,omitempty" toml: "ca,omitempty" yaml:"ca,omitempty"`
CAOptional bool `description:"TLS CA.Optional" json:"caOptional ,omitempty" toml:"caOptional,omitempty" yaml:"caOptional,omitempty"` CAOptional bool `description:"TLS CA.Optional" json:"caOptional ,omitempty" toml:"caOptional,omitempty" yaml:"caOptional,omitempty" export:"true "`
Cert string `description:"TLS cert" json:"cert,omitempty" t oml:"cert,omitempty" yaml:"cert,omitempty"` Cert string `description:"TLS cert" json:"cert,omitempty" t oml:"cert,omitempty" yaml:"cert,omitempty"`
Key string `description:"TLS key" json:"key,omitempty" tom l:"key,omitempty" yaml:"key,omitempty"` Key string `description:"TLS key" json:"key,omitempty" tom l:"key,omitempty" yaml:"key,omitempty"`
InsecureSkipVerify bool `description:"TLS insecure skip verify" json:"i nsecureSkipVerify,omitempty" toml:"insecureSkipVerify,omitempty" yaml:"insecureS kipVerify,omitempty"` InsecureSkipVerify bool `description:"TLS insecure skip verify" json:"i nsecureSkipVerify,omitempty" toml:"insecureSkipVerify,omitempty" yaml:"insecureS kipVerify,omitempty" export:"true"`
} }
// CreateTLSConfig creates a TLS config from ClientTLS structures. // CreateTLSConfig creates a TLS config from ClientTLS structures.
func (clientTLS *ClientTLS) CreateTLSConfig(ctx context.Context) (*tls.Config, e rror) { func (clientTLS *ClientTLS) CreateTLSConfig(ctx context.Context) (*tls.Config, e rror) {
if clientTLS == nil { if clientTLS == nil {
log.FromContext(ctx).Warnf("clientTLS is nil") log.FromContext(ctx).Warnf("clientTLS is nil")
return nil, nil return nil, nil
} }
caPool := x509.NewCertPool() caPool := x509.NewCertPool()
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)