Skip to content

Commit 900aaa9

Browse files
committed
knowledge: update list of deprecated objects for Go 1.16
1 parent 93fa3e0 commit 900aaa9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

knowledge/deprecated.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ var StdlibDeprecations = map[string]Deprecation{
6969
"net/http.CloseNotifier": {11, 7},
7070
"net/http.ProtocolError": {8, 8},
7171
"(crypto/x509.CertificateRequest).Attributes": {5, 3},
72+
73+
// These functions have no direct alternative, but they are insecure and should no longer be used.
74+
"crypto/x509.IsEncryptedPEMBlock": {16, 0},
75+
"crypto/x509.DecryptPEMBlock": {16, 0},
76+
"crypto/x509.EncryptPEMBlock": {16, 0},
77+
"crypto/dsa": {16, 0},
78+
7279
// This function has no alternative, but also no purpose.
7380
"(*crypto/rc4.Cipher).Reset": {12, 0},
7481
"(net/http/httptest.ResponseRecorder).HeaderMap": {11, 7},
@@ -79,7 +86,12 @@ var StdlibDeprecations = map[string]Deprecation{
7986
"crypto/tls.VersionSSL30": {13, 0},
8087
"(crypto/tls.Config).NameToCertificate": {14, 14},
8188
"(*crypto/tls.Config).BuildNameToCertificate": {14, 14},
82-
"image/jpeg.Reader": {4, 0},
89+
"(crypto/tls.Config).SessionTicketKey": {16, 5},
90+
// No alternative, no use
91+
"(crypto/tls.ConnectionState).NegotiatedProtocolIsMutual": {16, 0},
92+
// No alternative, but insecure
93+
"(crypto/tls.ConnectionState).TLSUnique": {16, 0},
94+
"image/jpeg.Reader": {4, 0},
8395

8496
// All of these have been deprecated in favour of external libraries
8597
"syscall.AttachLsf": {7, 0},
@@ -116,4 +128,7 @@ var StdlibDeprecations = map[string]Deprecation{
116128
"syscall.InterfaceAnnounceMessage": {7, 0},
117129
"syscall.InterfaceMulticastAddrMessage": {7, 0},
118130
"syscall.FormatMessage": {5, 0},
131+
132+
// Not marked as deprecated with a recognizable header, but deprecated nonetheless.
133+
"io/ioutil": {16, 16},
119134
}

0 commit comments

Comments
 (0)