Documentation ¶
Index ¶
- func HandShakeClientHello(hostname string, config *gotls.Config, startTLS bool, timeout time.Duration) (tlsmodel.ServerHelloMessage, error)
- func HandShakeClientHelloGetServerCert(hostname string, config *gotls.Config, timeout time.Duration) <-chan ServerHelloAndCert
- func HandShakeUpToKeyExchange(hostname string, config *gotls.Config, startTLS bool, timeout time.Duration) (tlsmodel.HelloAndKey, error)
- func MergeResultChannels(channels ...<-chan tlsmodel.ScanResult) <-chan tlsmodel.ScanResult
- func ScanCIDRTLS(cidr string, config tlsmodel.ScanConfig) <-chan tlsmodel.ScanResult
- type ServerHelloAndCert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandShakeClientHello ¶
func HandShakeClientHello(hostname string, config *gotls.Config, startTLS bool, timeout time.Duration) (tlsmodel.ServerHelloMessage, error)
HandShakeClientHello sends client hello and gets Server Hello and Certificates
func HandShakeClientHelloGetServerCert ¶
func HandShakeClientHelloGetServerCert(hostname string, config *gotls.Config, timeout time.Duration) <-chan ServerHelloAndCert
HandShakeClientHelloGetServerCert sends client hello and gets Server Hello and Certificates
func HandShakeUpToKeyExchange ¶
func HandShakeUpToKeyExchange(hostname string, config *gotls.Config, startTLS bool, timeout time.Duration) (tlsmodel.HelloAndKey, error)
HandShakeUpToKeyExchange starts the handshake up till the acquisition of server key exchanges
func MergeResultChannels ¶
func MergeResultChannels(channels ...<-chan tlsmodel.ScanResult) <-chan tlsmodel.ScanResult
MergeResultChannels as suggested
func ScanCIDRTLS ¶
func ScanCIDRTLS(cidr string, config tlsmodel.ScanConfig) <-chan tlsmodel.ScanResult
ScanCIDRTLS combines a port scan with TLS scan for a CIDR range to return the open ports, and the TLS setting for each port over the result channel
Types ¶
type ServerHelloAndCert ¶
type ServerHelloAndCert struct { ServerHello tlsmodel.ServerHelloMessage Cert tlsmodel.CertificateMessage StartTLS bool Err error }
ServerHelloAndCert struct holds server hello message and certificate (indicating whether it was STARTTLS), otherwise the error
Click to show internal directories.
Click to hide internal directories.