From: Ghazni Nattarshah Date: Wed, 23 Oct 2019 16:39:25 +0000 (+0530) Subject: crypto/x509: gofmt verify.go X-Git-Tag: go1.14beta1~611 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=67fb5530f07ae77a5e2fe6b8f5dcf3305e117460;p=gostls13.git crypto/x509: gofmt verify.go Fixes #35052 Change-Id: Ie7c52f39203cf16d8b53a333b591cffccdf7446a Reviewed-on: https://go-review.googlesource.com/c/go/+/202877 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/crypto/x509/verify.go b/src/crypto/x509/verify.go index c8bad642f0..358fca4705 100644 --- a/src/crypto/x509/verify.go +++ b/src/crypto/x509/verify.go @@ -578,13 +578,13 @@ func (c *Certificate) isValid(certType int, currentChain []*Certificate, opts *V } if now.Before(c.NotBefore) { return CertificateInvalidError{ - Cert: c, + Cert: c, Reason: Expired, Detail: fmt.Sprintf("current time %s is before %s", now.Format(time.RFC3339), c.NotBefore.Format(time.RFC3339)), } } else if now.After(c.NotAfter) { return CertificateInvalidError{ - Cert: c, + Cert: c, Reason: Expired, Detail: fmt.Sprintf("current time %s is after %s", now.Format(time.RFC3339), c.NotAfter.Format(time.RFC3339)), }