tls10

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 4

README

tls10

Partially implemented TLS 1.0.

Implement a part of the handshake to get information about the server.

Relevant RFC: RFC 2246

Errors silenced

readServerResponse()
  • Timeout while reading response.
  • Some server send RST (TCP Reset) inmediately after Alert(Handshake Failure) at the initial handshake. This causing a connection reset by peer error. But if the response is exactly 7 byte, the handshake was OK, but TLS10 is not supported.
getSupportedCiphers()
  • Some server respond an RST without Alert(Handshake Failure) when checking only one cipher. This means that the cipher is not supported.

Documentation

Index

Constants

View Source
const (
	VER_MAJOR uint8 = 0x03
	VER_MINOR uint8 = 0x01
)

Variables

This section is empty.

Functions

func Probe

func Probe(network, ip, port string, timeout time.Duration, servername string) (bool, error)

Types

type TLS10

type TLS10 struct {
	Supported     bool
	Certificates  []x509.Certificate
	DefaultCipher ciphersuite.CipherSuite
	Ciphers       []ciphersuite.CipherSuite
}

func Handshake

func Handshake(network, ip, port string, timeout time.Duration, servername string) (TLS10, error)

func Scan

func Scan(network, ip, port string, timeout time.Duration, servername string) (TLS10, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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