]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "crypto/x509: fix duplicate import"
authorKatie Hockman <katie@golang.org>
Mon, 26 Oct 2020 13:39:56 +0000 (13:39 +0000)
committerKatie Hockman <katie@golang.org>
Thu, 29 Oct 2020 15:27:22 +0000 (15:27 +0000)
This reverts CL 250497. It also moves all blank identifier imports below the rest of the imports for clarity.

Reason for revert: The blank identifier import was intentional to show that it's needed for its registration side effect. The duplicate import should stay since it communicates that the side-effect is important to tools and to future developers updating this file.

Change-Id: I626e6329db50f47453aa71085a05d21bf6efe0ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/265078
Run-TryBot: Katie Hockman <katie@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/x509.go

index b421d759732182d16903599acab13bd836705c3f..a314b5ed1ad4142cb58a70c6bff91656daada57a 100644 (file)
@@ -14,8 +14,6 @@ import (
        "crypto/elliptic"
        "crypto/rsa"
        "crypto/sha1"
-       _ "crypto/sha256"
-       _ "crypto/sha512"
        "crypto/x509/pkix"
        "encoding/asn1"
        "encoding/pem"
@@ -30,6 +28,10 @@ import (
        "time"
        "unicode"
 
+       _ "crypto/sha1"
+       _ "crypto/sha256"
+       _ "crypto/sha512"
+
        "golang.org/x/crypto/cryptobyte"
        cryptobyte_asn1 "golang.org/x/crypto/cryptobyte/asn1"
 )