Standard library / crypto/x509

crypto/x509.NameConstraintsWithoutSANs

Legacy reason no longer returned. This is an error reason, not a verification option. Expected stdout: '6\n'.

Formal Syntax & Structure

go syntaxgo
const NameConstraintsWithoutSANs InvalidReason = 6

Working Example

Example Snippetgo
package main
import (  "crypto/x509"  "fmt")
func main() {  // Historical interoperability demonstration only. Prefer modern protocols for new designs.  fmt.Println(int(x509.NameConstraintsWithoutSANs))}
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