Documentation ¶
Overview ¶
Package tlsscan is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( VersionSSL30 = 0x0300 VersionTLS10 = 0x0301 VersionTLS11 = 0x0302 VersionTLS12 = 0x0303 )
Variables ¶
View Source
var ErrExpectedAbort = errors.New("tls: aborting handshake")
View Source
var ProtocolVersions = []ProtocolVersion{ {ID: VersionSSL30, Name: "VersionSSL30"}, {ID: VersionTLS10, Name: "VersionTLS10"}, {ID: VersionTLS11, Name: "VersionTLS11"}, {ID: VersionTLS12, Name: "VersionTLS12"}, }
Functions ¶
func AttemptHandshake ¶ added in v0.5.0
func AttemptHandshake(logger scanlog.Logger, dialer *net.Dialer, network, addr string, config *tls.Config) error
copied from crypto/tls/DialWithDialer, modified to immediately close the connection return nil if cipher was negotiated successfully, even if the handshake failed in a later step (e.g. client cert validation)
Types ¶
type CipherSuite ¶ added in v0.5.0
func BuildCipherSuites ¶ added in v0.5.0
func BuildCipherSuites() ([]CipherSuite, error)
type MockTlsScanner ¶ added in v0.5.0
type MockTlsScanner struct {
// contains filtered or unexported fields
}
MockTlsScanner is a mock of TlsScanner interface
func NewMockTlsScanner ¶ added in v0.5.0
func NewMockTlsScanner(ctrl *gomock.Controller) *MockTlsScanner
NewMockTlsScanner creates a new mock instance
func (*MockTlsScanner) EXPECT ¶ added in v0.5.0
func (m *MockTlsScanner) EXPECT() *MockTlsScannerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTlsScanner) FetchTLSInformation ¶ added in v0.5.0
func (m *MockTlsScanner) FetchTLSInformation(host, port string) (*scantron.Certificate, bool, error)
FetchTLSInformation mocks base method
func (*MockTlsScanner) Scan ¶ added in v0.5.0
func (m *MockTlsScanner) Scan(logger scanlog.Logger, host, port string) (scantron.CipherInformation, error)
Scan mocks base method
type MockTlsScannerMockRecorder ¶ added in v0.5.0
type MockTlsScannerMockRecorder struct {
// contains filtered or unexported fields
}
MockTlsScannerMockRecorder is the mock recorder for MockTlsScanner
func (*MockTlsScannerMockRecorder) FetchTLSInformation ¶ added in v0.5.0
func (mr *MockTlsScannerMockRecorder) FetchTLSInformation(host, port interface{}) *gomock.Call
FetchTLSInformation indicates an expected call of FetchTLSInformation
func (*MockTlsScannerMockRecorder) Scan ¶ added in v0.5.0
func (mr *MockTlsScannerMockRecorder) Scan(logger, host, port interface{}) *gomock.Call
Scan indicates an expected call of Scan
type ProtocolVersion ¶ added in v0.5.0
type TlsScanner ¶ added in v0.5.0
type TlsScannerImpl ¶ added in v0.5.0
type TlsScannerImpl struct{}
func (*TlsScannerImpl) FetchTLSInformation ¶ added in v0.5.0
func (s *TlsScannerImpl) FetchTLSInformation(host, port string) (*scantron.Certificate, bool, error)
func (*TlsScannerImpl) Scan ¶ added in v0.5.0
func (s *TlsScannerImpl) Scan(logger scanlog.Logger, host string, port string) (scantron.CipherInformation, error)
Click to show internal directories.
Click to hide internal directories.