From 8c1d3c9a861d17d5b6ef59f5479192eb35b0a02b Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Wed, 16 Dec 2015 12:01:51 -0500 Subject: [PATCH] *: Fix `authentification` typo --- api/api.go | 8 ++++---- notifier/notifier.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/api.go b/api/api.go index dbd810e1..f4d0de8f 100644 --- a/api/api.go +++ b/api/api.go @@ -48,10 +48,10 @@ func Run(config *config.APIConfig, st *utils.Stopper) { tlsConfig, err := tlsClientConfig(config.CAFile) 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 { - log.Info("main API configured with client certificate authentification") + log.Info("main API configured with client certificate authentication") } 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 -// 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) { defer st.End() @@ -118,7 +118,7 @@ func listenAndServeWithStopper(srv *graceful.Server, st *utils.Stopper, certFile // certificate authentication. // // 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) { if caPath == "" { return nil, nil diff --git a/notifier/notifier.go b/notifier/notifier.go index d432e301..c34a0e40 100644 --- a/notifier/notifier.go +++ b/notifier/notifier.go @@ -74,10 +74,10 @@ func New(config *config.NotifierConfig) *Notifier { // Initialize TLS. tlsConfig, err := loadTLSClientConfig(config) 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 { - log.Info("notifier configured with client certificate authentification") + log.Info("notifier configured with client certificate authentication") } httpClient := &http.Client{