]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: gofmt verify.go
authorGhazni Nattarshah <ghazni.nattarshah@gmail.com>
Wed, 23 Oct 2019 16:39:25 +0000 (22:09 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 23 Oct 2019 18:07:56 +0000 (18:07 +0000)
Fixes #35052

Change-Id: Ie7c52f39203cf16d8b53a333b591cffccdf7446a
Reviewed-on: https://go-review.googlesource.com/c/go/+/202877
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/verify.go

index c8bad642f0eb286adf81d3f1e8f4d24d9acb8064..358fca4705b90759e6bf4a84daa342e7b0bda934 100644 (file)
@@ -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)),
                }