revocation

package
v0.0.0-...-98addd5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Definitions for these codes can be found in Section 8.5.3.1 of ITU-T X.509
	// http://www.itu.int/rec/T-REC-X.509-201210-I/en
	Unspecified          = 0
	KeyCompromise        = 1
	CACompromise         = 2
	AffiliationChanged   = 3
	Superseded           = 4
	CessationOfOperation = 5
	CertificateHold      = 6
	// 7 is unused
	RemoveFromCRL      = 8
	PrivilegeWithdrawn = 9
	AACompromise       = 10
)

Variables

View Source
var ReasonToString = map[Reason]string{
	Unspecified:          "unspecified",
	KeyCompromise:        "keyCompromise",
	CACompromise:         "cACompromise",
	AffiliationChanged:   "affiliationChanged",
	Superseded:           "superseded",
	CessationOfOperation: "cessationOfOperation",
	CertificateHold:      "certificateHold",

	RemoveFromCRL:      "removeFromCRL",
	PrivilegeWithdrawn: "privilegeWithdrawn",
	AACompromise:       "aAcompromise",
}

RevocationReasons provides a map from reason code to string explaining the code

View Source
var UserAllowedReasons = map[Reason]struct{}{
	Unspecified:          {},
	KeyCompromise:        {},
	AffiliationChanged:   {},
	Superseded:           {},
	CessationOfOperation: {},
}

UserAllowedReasons contains the subset of Reasons which users are allowed to use

Functions

This section is empty.

Types

type Reason

type Reason int

Reason is used to specify a certificate revocation reason

Jump to

Keyboard shortcuts

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