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
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.
Click to show internal directories.
Click to hide internal directories.