Standard library / crypto/x509

crypto/x509.UnconstrainedName

A constrained CA encounters an unsupported name type. This is an error reason, not a verification option. Expected stdout: '7\n'.

Formal Syntax & Structure

go syntaxgo
const UnconstrainedName InvalidReason = 7

Working Example

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