ztls

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 14 Imported by: 6

Documentation

Overview

Package ztls implements a tls grabbing implementation using zmap zcrypto/tls library.

Index

Constants

This section is empty.

Variables

View Source
var (
	AllCiphers           []uint16
	AllCiphersNames      []string
	SupportedTlsVersions []string
)

Functions

func ConvertCertificateToResponse added in v0.0.6

func ConvertCertificateToResponse(options *clients.Options, hostname string, cert *x509.Certificate) *clients.CertificateResponse

ConvertCertificateToResponse using zcrypto x509

func ParseSimpleTLSCertificate added in v0.0.6

func ParseSimpleTLSCertificate(cert tls.SimpleCertificate) *x509.Certificate

ParseSimpleTLSCertificate using zcrypto x509

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a TLS grabbing client using crypto/tls

func New

func New(options *clients.Options) (*Client, error)

New creates a new grabbing client using crypto/tls

func (*Client) ConnectWithOptions added in v0.0.4

func (c *Client) ConnectWithOptions(hostname, ip, port string, options clients.ConnectOptions) (*clients.Response, error)

Connect connects to a host and grabs the response data

func (*Client) SupportedTLSCiphers added in v0.0.6

func (c *Client) SupportedTLSCiphers() ([]string, error)

SupportedTLSCiphers returns the list of ztls library supported ciphers

func (*Client) SupportedTLSVersions added in v0.0.6

func (c *Client) SupportedTLSVersions() ([]string, error)

SupportedTLSVersions returns the list of ztls library supported tls versions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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