revocation

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0, MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminAllowedReasons = map[Reason]struct{}{
	ocsp.Unspecified:          {},
	ocsp.KeyCompromise:        {},
	ocsp.Superseded:           {},
	ocsp.CessationOfOperation: {},
	ocsp.PrivilegeWithdrawn:   {},
}

AdminAllowedReasons contains the subset of Reasons which admins are allowed to use. Reasons not found here will soon be forbidden from appearing in CRLs or OCSP responses by root programs.

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

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

ReasonToString provides a map from reason code to string

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

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

View Source
var UserAllowedReasonsMessage = ""

UserAllowedReasonsMessage contains a string describing a list of user allowed revocation reasons. This is useful when a revocation is rejected because it is not a valid user supplied reason and the allowed values must be communicated. This variable is populated during package initialization.

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