Skip to content

Commit

Permalink
pkg: Remove stray printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillikin-stripe committed Jul 9, 2019
1 parent 18ae055 commit 95db995
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/transport/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,13 @@ func (info TLSInfo) baseConfig() (*tls.Config, error) {
}
if verifyCertificate != nil {
cfg.VerifyPeerCertificate = func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
fmt.Fprintf(os.Stderr, "== VERIFY PEER CERT (%d verified chains)\n", len(verifiedChains))
for _, chains := range verifiedChains {
if len(chains) != 0 {
if verifyCertificate(chains[0]) {
return nil
}
}
}
fmt.Fprintf(os.Stderr, "== VERIFY PEER CERT\n")
return errors.New("client certificate authentication failed")
}
}
Expand Down Expand Up @@ -364,7 +362,6 @@ func (info TLSInfo) ServerConfig() (*tls.Config, error) {
}

cs := info.cafiles()
fmt.Fprintf(os.Stderr, "== CAFILES: %v\n", cs)
if len(cs) > 0 {
cp, err := tlsutil.NewCertPool(cs)
if err != nil {
Expand Down

0 comments on commit 95db995

Please sign in to comment.