From 716fb72e276c8f49903c2309957e16aebcdf3b76 Mon Sep 17 00:00:00 2001 From: David Fradin Date: Tue, 20 Oct 2020 16:11:26 +0200 Subject: [PATCH] Update kafka.go Co-authored-by: Urban Ishimwe --- kafka.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kafka.go b/kafka.go index eae0a7f..5d8a745 100644 --- a/kafka.go +++ b/kafka.go @@ -51,10 +51,6 @@ type KafkaMessage struct { ReqHeaders map[string]string `json:"Req_Headers,omitempty"` } -// ErrorTLSMissingKey is the error when client cert is present but key is missing -var ErrorTLSMissingKey = errors.New("Missing key of client certificate") -// ErrorTLSMissingCert is the error when key is present but client cert is missing -var ErrorTLSMissingCert = errors.New("Missing client certificate") // NewTLSConfig loads TLS certificates func NewTLSConfig(clientCertFile, clientKeyFile, caCertFile string) (*tls.Config, error) {