Standard library / crypto/tls
tls.RenegotiateFreelyAsClient
Legacy TLS client renegotiation policy; prefer RenegotiateNever for new applications. The example prints the numeric identifier, not a negotiated value. Expected stdout: '2\n'.
Formal Syntax & Structure
go syntaxgo
const RenegotiateFreelyAsClient RenegotiationSupport = 2Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { fmt.Println(uint16(tls.RenegotiateFreelyAsClient)) }
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) }}