certigo: github.com/square/certigo/starttls Index | Files | Directories

package starttls

import "github.com/square/certigo/starttls"

Index

Package Files

dialer.go ftp.go imap.go starttls.go

Variables

var Protocols = []string{"mysql", "postgres", "psql", "smtp", "ldap", "ftp", "imap"}

Protocols are the names of supported protocols

func GetConnectionState Uses

func GetConnectionState(startTLSType, connectName, connectTo, identity, clientCert, clientKey string, connectProxy *url.URL, timeout time.Duration) (*tls.ConnectionState, *tls.CertificateRequestInfo, error)

GetConnectionState connects to a TLS server, returning the connection state. Currently, startTLSType can be one of "mysql", "postgres" or "psql", or the empty string, which does a normal TLS connection. connectTo specifies the address to connect to. connectName sets SNI. identity sets DB username, SMTP EHLO. connectCert and connectKey are client cert/key.

type Dialer Uses

type Dialer interface {
    Dial(network, address string) (net.Conn, error)
}

Dialer is an interface for dialers (either net.Dialer, or http_dialer.HttpTunnel)

Directories

PathSynopsis
ldapPackage ldap provides basic LDAP v3 functionality.
mysqlPackage mysql provides a MySQL driver for Go's database/sql package
psqlPackage pq is a pure Go Postgres driver for the database/sql package.
psql/oidPackage oid contains OID constants as defined by the Postgres server.

Package starttls imports 14 packages (graph) and is imported by 3 packages. Updated 2020-02-11. Refresh now. Tools for package owners.