Documentation
¶
Index ¶
- func IsPreIssuer(issuer *x509.Certificate) bool
- type CTLogMetadata
- type CTLogState
- type CoverageCutoffMap
- type ExpDate
- type Extension
- type Issuer
- type IssuerCrlMap
- type IssuerCrlUrlPaths
- type IssuerCrlUrls
- type IssuerDate
- type RevokedCertificateWithRawSerial
- type SPKI
- type Serial
- type SerialAndReason
- type SerialList
- type TBSCertificateListWithRawSerials
- type UrlPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPreIssuer ¶
func IsPreIssuer(issuer *x509.Certificate) bool
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"`
Tiled bool `json:"tiled"`
}
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 in milliseconds of the earliest entry we've downloaded
MaxTimestamp uint64 `db:"maxTimestamp"` // Unix timestamp in milliseconds 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) CoverageCutoff ¶
func (o *CTLogState) CoverageCutoff() uint64
func (*CTLogState) KeyID ¶
func (o *CTLogState) KeyID() ([32]byte, error)
func (*CTLogState) String ¶
func (o *CTLogState) String() string
type CoverageCutoffMap ¶
func NewCoverageCutoffMap ¶
func NewCoverageCutoffMap(aLogData []CTLogState) CoverageCutoffMap
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 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 SerialList ¶
type SerialList []Serial
func (SerialList) Dedup ¶
func (s SerialList) Dedup() SerialList
func (SerialList) Len ¶
func (s SerialList) Len() int
func (SerialList) Less ¶
func (s SerialList) Less(i, j int) bool
func (SerialList) Swap ¶
func (s SerialList) Swap(i, j int)
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)
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
aggregate-crls
command
|
|
|
aggregate-known
command
|
|
|
commit
command
|
|
|
ct-fetch
command
|
|
|
get-mozilla-issuers
command
|
|
Click to show internal directories.
Click to hide internal directories.