Documentation ¶
Index ¶
- type CTLogMetadata
- type CTLogState
- type ExpDate
- type Extension
- type Issuer
- type IssuerAndDate
- type IssuerCrlMap
- type IssuerCrlUrlPaths
- type IssuerCrlUrls
- type IssuerDate
- type RevokedCertificateWithRawSerial
- type SPKI
- type Serial
- type SerialAndReason
- type TBSCertificateListWithRawSerials
- type UrlPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CTLogMetadata ¶
type CTLogMetadata struct { CRLiteEnrolled bool `json:"crlite_enrolled"` Description string `json:"description"` Key string `json:"key"` LogID string `json:"logID"` MMD int `json:"mmd"` URL string `json:"url"` }
The CTLogMetadata struct contains the information that we receive * `ct-logs` Remote Settings collection.
func (*CTLogMetadata) MetricKey ¶
func (o *CTLogMetadata) MetricKey() string
type CTLogState ¶
type CTLogState struct { LogID string `db:"logID"` // The log's RFC 6962 LogID MMD uint64 `db:"mmd"` // The log's maximum merge delay in seconds ShortURL string `db:"url"` // URL to the log MinEntry uint64 `db:"minEntry"` // The smallest index we've downloaded MaxEntry uint64 `db:"maxEntry"` // The largest index we've downloaded MinTimestamp uint64 `db:"minTimestamp"` // Unix timestamp of the earliest entry we've downloaded MaxTimestamp uint64 `db:"maxTimestamp"` // Unix timestamp of the most recent entry we've downloaded LastUpdateTime time.Time `db:"lastUpdateTime"` // Date when we completed the last update }
The CTLogState struct contains information necessary to describe a filter's * coverage of a CT log.
func (*CTLogState) String ¶
func (o *CTLogState) String() string
type ExpDate ¶
type ExpDate struct {
// contains filtered or unexported fields
}
func NewExpDate ¶
func NewExpDateFromTime ¶
func (ExpDate) ExpireTime ¶
type Extension ¶
type Extension struct { Id asn1.ObjectIdentifier Critical bool `asn1:"optional"` Value []byte }
type Issuer ¶
type Issuer struct {
// contains filtered or unexported fields
}
func NewIssuer ¶
func NewIssuer(aCert *x509.Certificate) Issuer
func NewIssuerFromString ¶
func (*Issuer) MarshalJSON ¶
func (*Issuer) UnmarshalJSON ¶
type IssuerAndDate ¶
func (*IssuerAndDate) String ¶
func (t *IssuerAndDate) String() string
type IssuerCrlMap ¶
func (IssuerCrlMap) Merge ¶
func (self IssuerCrlMap) Merge(other IssuerCrlMap)
type IssuerCrlUrlPaths ¶
type IssuerCrlUrls ¶
type IssuerDate ¶
type RevokedCertificateWithRawSerial ¶
type RevokedCertificateWithRawSerial struct { Raw asn1.RawContent SerialNumber asn1.RawValue RevocationTime time.Time Extensions []Extension `asn1:"optional"` }
func (RevokedCertificateWithRawSerial) Reason ¶
func (c RevokedCertificateWithRawSerial) Reason() (asn1.Enumerated, error)
func (RevokedCertificateWithRawSerial) SerialAndReason ¶
func (c RevokedCertificateWithRawSerial) SerialAndReason() (SerialAndReason, error)
type SPKI ¶
type SPKI struct {
// contains filtered or unexported fields
}
func (SPKI) Sha256DigestURLEncodedBase64 ¶
type Serial ¶
type Serial struct {
// contains filtered or unexported fields
}
func NewSerial ¶
func NewSerial(aCert *x509.Certificate) Serial
func NewSerialFromBytes ¶
func NewSerialFromHex ¶
func (Serial) BinaryString ¶
func (Serial) MarshalJSON ¶
func (*Serial) UnmarshalJSON ¶
type SerialAndReason ¶
A serial number with a revocation reason code
type TBSCertificateListWithRawSerials ¶
type TBSCertificateListWithRawSerials struct { Raw asn1.RawContent Version int `asn1:"optional,default:0"` Signature asn1.RawValue Issuer asn1.RawValue ThisUpdate time.Time NextUpdate time.Time `asn1:"optional"` RevokedCertificates []RevokedCertificateWithRawSerial `asn1:"optional"` }
func DecodeRawTBSCertList ¶
func DecodeRawTBSCertList(data []byte) (*TBSCertificateListWithRawSerials, error)
Click to show internal directories.
Click to hide internal directories.