Standard library / crypto/x509
crypto/x509.UnhandledCriticalExtension
Error for unsupported critical extensions. Do not ignore critical extensions to force trust. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type UnhandledCriticalExtension struct{}Working Example
Example Snippetgo
package main
import ( "crypto/x509" "fmt")
func main() { var e error = x509.UnhandledCriticalExtension{}; fmt.Println(e != nil) }
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) }}