299 tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
300 }
301 versions = map[string]uint16{
302 "SSL3.0": tls.VersionSSL30,303 "TLS10": tls.VersionTLS10,
304 "TLS11": tls.VersionTLS11,
305 "TLS12": tls.VersionTLS12,
337 in string
338 out uint16
339 }{
340 {in: "SSL3.0", out: tls.VersionSSL30},341 {in: "TLS10", out: tls.VersionTLS10},
342 {in: "TLS11", out: tls.VersionTLS11},
343 {in: "TLS12", out: tls.VersionTLS12},
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.