Standard library / crypto/tls

tls.TLS_FALLBACK_SCSV

Signaling cipher suite value for downgrade protection; not an encryption suite to select. The example prints the numeric identifier, not a negotiated value. Expected stdout: '22016\n'.

Formal Syntax & Structure

go syntaxgo
const TLS_FALLBACK_SCSV uint16 = 22016

Working Example

Example Snippetgo
package main
import (  "crypto/tls"  "fmt")
func main() { fmt.Println(uint16(tls.TLS_FALLBACK_SCSV)) }
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