ssl30

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

ssl30

Partially implemented SSL 3.0.

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

Relevant RFC: RFC 6101

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 SSLv3 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 = 0x00
)

Variables

This section is empty.

Functions

func Probe

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

Types

type SSL30

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

func Handshake

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

func Scan

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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