Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRLSet ¶
type CRLSet struct { Version string IssuerLists map[string]*IssuerList Sequence int NumParents int BlockedSPKIs []string }
CRLSet - data structure for storing CRLSet data, used by methods below
func FetchAndParse ¶
FetchAndParse - fetch from distribution point, parse to CRLSet struct as defined above
func Parse ¶
func Parse(crlSetReader io.ReadCloser, version string) (*CRLSet, error)
Parse - given a reader for a raw byte stream for a CRLSet, parse the file into a usable CRLSet struct instance. DUE TO THE DIFFICULTY OF RETRIEVING A CRLSET, IT IS HIGHLY RECOMMENDED TO JUST USE THE FetchAndParseCRLSet FUNCTION PROVIDED ABOVE
type CRLSetHeader ¶
CRLSetHeader is used to parse the JSON header found in CRLSet files.
type IssuerList ¶
IssuerList - list of revoked certificate entries for a given issuer
type RawCRLSetSerial ¶
RawCRLSetSerial - structure of certificate serial number in a raw CRLSet entry
type RawEntry ¶
type RawEntry struct { SPKIHash [32]byte // SHA256 of Issuer SPKI NumSerials uint32 Serials []RawCRLSetSerial }
RawEntry - structure for a raw CRLSet entry