Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginNfqueueHandler ¶
func PluginNfqueueHandler(mess dispatch.NfqueueMessage, ctid uint32, newSession bool) dispatch.NfqueueResult
PluginNfqueueHandler is called to handle nfqueue packet data. We only look at traffic with port 443 as destination. When detected, we load the server certificate from our cache or fetch it from the server and store it in our cache. Once we have the cert, we attach it to the session, extract the interesting subject fields, and put them in the session table.
func PluginShutdown ¶
func PluginShutdown()
PluginShutdown function called when the daemon is shutting down. We call Done for the argumented WaitGroup to let the main process know we're finished.
func PluginStartup ¶
func PluginStartup()
PluginStartup function is called to allow plugin specific initialization. We increment the argumented WaitGroup so the main process can wait for our shutdown function to return during shutdown.
Types ¶
type CertificateHolder ¶
type CertificateHolder struct {
CreationTime time.Time
Certificate x509.Certificate
}
CertificateHolder is used to cache SSL/TLS certificates