Standard library / crypto/tls

tls.RenegotiationSupport

Controls legacy TLS client renegotiation. Keep RenegotiateNever unless a reviewed compatibility requirement exists. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type RenegotiationSupport int

Working Example

Example Snippetgo
package main
import (  "crypto/tls"  "fmt")
func main() {  c := tls.Config{Renegotiation: tls.RenegotiateNever}  fmt.Println(c.Renegotiation == tls.RenegotiateNever)}
func must[T any](v T, e error) T {  if e != nil {    panic(e)  }  return v}func check(e error) {  if e != nil {    panic(e)  }}
Go Reference