extensionsupport

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OidCertExtAuthorityKeyId = "2.5.29.35"
View Source
const OidCertExtSubjectKeyId = "2.5.29.14"
View Source
const OidCrlExtCrlNumber = "2.5.29.20"

Variables

This section is empty.

Functions

func CheckForCriticalUnhandledCRLExtensions

func CheckForCriticalUnhandledCRLExtensions(extensions *[]pkix.Extension) error

func FindExtension

func FindExtension(oidString string, extensions *[]pkix.Extension) *pkix.Extension

Types

type AuthorityKeyIdentifier

type AuthorityKeyIdentifier struct {
	Raw                       asn1.RawContent
	KeyIdentifier             []byte      `asn1:"tag:0,optional"`
	AuthorityCertIssuer       GeneralName `asn1:"tag:1,optional"`
	AuthorityCertSerialNumber *big.Int    `asn1:"tag:2,optional"`
}

type GeneralName

type GeneralName struct {
	Raw                       asn1.RawContent
	OtherName                 asn1.RawValue `asn1:"tag:0,optional"`
	Rfc822Name                asn1.RawValue `asn1:"tag:1,ia5,optional"`
	DNSName                   asn1.RawValue `asn1:"tag:2,ia5,optional"`
	X400Address               asn1.RawValue `asn1:"tag:3,optional"`
	DirectoryName             asn1.RawValue `asn1:"tag:4,optional"`
	EdiPartyName              asn1.RawValue `asn1:"tag:5,optional"`
	UniformResourceIdentifier asn1.RawValue `asn1:"tag:6,ia5,optional"`
	IPAddress                 asn1.RawValue `asn1:"tag:7,optional"`
	RegisteredID              asn1.RawValue `asn1:"tag:8,optional"`
}

func (GeneralName) GetGeneralNameType

func (G GeneralName) GetGeneralNameType() (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL