connection

package
v0.0.0-...-7bc4285 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MPL-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(domain, cipherscanbinPath string) ([]byte, error)

Types

type CipherscanCiphersuite

type CipherscanCiphersuite struct {
	Cipher       string   `json:"cipher"`
	Protocols    []string `json:"protocols"`
	PubKey       []string `json:"pubkey"`
	SigAlg       []string `json:"sigalg"`
	Trusted      string   `json:"trusted"`
	TicketHint   string   `json:"ticket_hint"`
	OCSPStapling string   `json:"ocsp_stapling"`
	PFS          string   `json:"pfs"`
	Curves       []string `json:"curves"`
}

type CipherscanOutput

type CipherscanOutput struct {
	Target         string                  `json:"target"`
	IP             string                  `json:"ip"`
	Timestamp      string                  `json:"utctimestamp"`
	ServerSide     string                  `json:"serverside"`
	CurvesFallback string                  `json:"curves_fallback"`
	CipherSuites   []CipherscanCiphersuite `json:"ciphersuite"`
}

func (CipherscanOutput) Stored

func (s CipherscanOutput) Stored() (Stored, error)

Stored creates a Stored struct from the CipherscanOutput struct

type Ciphersuite

type Ciphersuite struct {
	Cipher       string   `json:"cipher"`
	Code         uint64   `json:"code"`
	Protocols    []string `json:"protocols"`
	PubKey       float64  `json:"pubkey"`
	SigAlg       string   `json:"sigalg"`
	TicketHint   string   `json:"ticket_hint"`
	OCSPStapling bool     `json:"ocsp_stapling"`
	PFS          string   `json:"pfs"`
	Curves       []string `json:"curves"`
}

type NoTLSConnErr

type NoTLSConnErr string

func (NoTLSConnErr) Error

func (f NoTLSConnErr) Error() string

type Stored

type Stored struct {
	ScanIP         string        `json:"scanIP"`
	ServerSide     bool          `json:"serverside"`
	CipherSuite    []Ciphersuite `json:"ciphersuite"`
	CurvesFallback bool          `json:"curvesFallback"`
}

func (Stored) Equal

func (c Stored) Equal(ci Stored) bool

Jump to

Keyboard shortcuts

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