*: Fix authentification typo

This commit is contained in:
Quentin Machu 2015-12-16 12:01:51 -05:00
parent 172693b604
commit 8c1d3c9a86
2 changed files with 6 additions and 6 deletions

View File

@ -48,10 +48,10 @@ func Run(config *config.APIConfig, st *utils.Stopper) {
tlsConfig, err := tlsClientConfig(config.CAFile) tlsConfig, err := tlsClientConfig(config.CAFile)
if err != nil { if err != nil {
log.Fatalf("could not initialize client cert authentification: %s\n", err) log.Fatalf("could not initialize client cert authentication: %s\n", err)
} }
if tlsConfig != nil { if tlsConfig != nil {
log.Info("main API configured with client certificate authentification") log.Info("main API configured with client certificate authentication")
} }
srv := &graceful.Server{ srv := &graceful.Server{
@ -68,7 +68,7 @@ func Run(config *config.APIConfig, st *utils.Stopper) {
} }
// RunHealth launches the Health API, which only exposes a method to fetch // RunHealth launches the Health API, which only exposes a method to fetch
// Clair's health without any security or authentification mechanism. // Clair's health without any security or authentication mechanism.
func RunHealth(config *config.APIConfig, st *utils.Stopper) { func RunHealth(config *config.APIConfig, st *utils.Stopper) {
defer st.End() defer st.End()
@ -118,7 +118,7 @@ func listenAndServeWithStopper(srv *graceful.Server, st *utils.Stopper, certFile
// certificate authentication. // certificate authentication.
// //
// If no CA is given, a nil *tls.Config is returned; no client certificate will // If no CA is given, a nil *tls.Config is returned; no client certificate will
// be required and verified. In other words, authentification will be disabled. // be required and verified. In other words, authentication will be disabled.
func tlsClientConfig(caPath string) (*tls.Config, error) { func tlsClientConfig(caPath string) (*tls.Config, error) {
if caPath == "" { if caPath == "" {
return nil, nil return nil, nil

View File

@ -74,10 +74,10 @@ func New(config *config.NotifierConfig) *Notifier {
// Initialize TLS. // Initialize TLS.
tlsConfig, err := loadTLSClientConfig(config) tlsConfig, err := loadTLSClientConfig(config)
if err != nil { if err != nil {
log.Fatalf("could not initialize client cert authentification: %s\n", err) log.Fatalf("could not initialize client cert authentication: %s\n", err)
} }
if tlsConfig != nil { if tlsConfig != nil {
log.Info("notifier configured with client certificate authentification") log.Info("notifier configured with client certificate authentication")
} }
httpClient := &http.Client{ httpClient := &http.Client{