certcache

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachCertificateToSession

func AttachCertificateToSession(session *dispatch.Session, certificate x509.Certificate)

AttachCertificateToSession is called to attach a certificate to a session entry and to populate the dictionary with details about the certificate

func InsertCertificate

func InsertCertificate(finder string, holder *CertificateHolder)

InsertCertificate adds a certificate to the cache

func RemoveCertificate

func RemoveCertificate(finder string)

RemoveCertificate removes a certificate from the cache

func Shutdown

func Shutdown()

Shutdown function called when the daemon is shutting down.

func Startup

func Startup()

Startup function is called to allow service specific initialization.

Types

type CertificateHolder

type CertificateHolder struct {
	CreationTime time.Time
	Certificate  x509.Certificate
	Available    bool
	WaitGroup    sync.WaitGroup
	CertLocker   sync.Mutex
}

CertificateHolder is used to cache SSL/TLS certificates

func FindCertificate

func FindCertificate(finder string) (*CertificateHolder, bool)

FindCertificate fetches the cached certificate for the argumented address.

Jump to

Keyboard shortcuts

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