ctstream

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 8 Imported by: 0

README

ct-stream

The library, streaming the certificates from ct logs, written in golang.

Documentation

Index

Constants

View Source
const (
	ERROR_FAILED_TO_NEW        = "failed to create new client"
	ERROR_FAILED_TO_FETCH_STH  = "failed to fetch STH"
	ERROR_NEW_LOGS_NOT_FOUND   = "new logs not found"
	ERROR_FAILED_TO_GET_CERT   = "failed to get certificate"
	ERROR_FAILED_TO_PARSE_CERT = "failed to parse certificate"
	NO_CERT_AND_PRECERT_LEAF   = "no certificate and precertificate leaf"
)

Variables

This section is empty.

Functions

func ExtractCertFromEntry

func ExtractCertFromEntry(entry *ct.LogEntry) (*ctx509.Certificate, error)

Types

type CTStream

type CTStream struct {
	Sleep time.Duration
	// contains filtered or unexported fields
}

func New

func New(urls []string, sleep time.Duration) (*CTStream, error)

func (*CTStream) Init

func (stream *CTStream) Init() error

func (*CTStream) Next

func (stream *CTStream) Next(callback Callback)

func (*CTStream) Run

func (stream *CTStream) Run(callback Callback)

type Callback

type Callback func(*ctx509.Certificate, LogID, *client.LogClient, error)

type LogID

type LogID = int64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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