Documentation ¶
Index ¶
- Constants
- Variables
- func GetClientHelloIDFromParams(parameters url.Values) (utls.ClientHelloID, error)
- func GetDigestFunc(method string) func([]byte) []byte
- func GetNextProtosFromParams(parameters url.Values) []string
- func GetSNIFromParams(parameters url.Values) string
- func LoadCertPoolFromParams(parameters url.Values, paramName string) (*x509.CertPool, int, error)
- func LoadCertsFromParams(parameters url.Values, paramName string) ([]*x509.Certificate, error)
- func LoadX509PairBytes(certPath, keyPath string) (cert []byte, key []byte, err error)
- func LoadX509PairBytesFromParams(parameters url.Values) (cert []byte, key []byte, err error)
- func LoadX509PairFromParams(parameters url.Values) (utls.Certificate, error)
- func LoadX509PairsBytesFromParams(parameters url.Values) (certs [][]byte, keys [][]byte, err error)
- func LoadX509PairsFromParams(parameters url.Values) ([]utls.Certificate, error)
- func ParseUTLS(parameters url.Values, isClient bool) (config *utls.Config, helloId utls.ClientHelloID, e error)
- func Sha1Sum(in []byte) []byte
- func Sha224Sum(in []byte) []byte
- func Sha256Sum(in []byte) []byte
- func Sha384Sum(in []byte) []byte
- func Sha3Sum(in []byte) []byte
- func Sha512Sum(in []byte) []byte
- type CertificatePin
- type PeerVerifierFunc
Constants ¶
View Source
const ( ParamSNI = "tls.sni" ParamNextProtos = "tls.alpn" ParamHelloId = "tls.profile" ParamCertificate = "tls.cert" ParamPrivateKey = "tls.key" ParamCertificatePin = "tls.pin" ParamInsecure = "tls.insecure" ParamClientCA = "tls.clientca" CertificatePinDigestMethodSeparator = ":" MultipleValuesSeparator = "," MultiplePathsSeparator = ":" )
Variables ¶
View Source
var ErrProfileNotSupported = errors.New("profile not supported by uTLS library")
Functions ¶
func GetClientHelloIDFromParams ¶
func GetClientHelloIDFromParams(parameters url.Values) (utls.ClientHelloID, error)
func GetDigestFunc ¶
func GetNextProtosFromParams ¶
func GetSNIFromParams ¶
func LoadCertPoolFromParams ¶
func LoadCertsFromParams ¶
func LoadX509PairBytes ¶
func LoadX509PairFromParams ¶
func LoadX509PairFromParams(parameters url.Values) (utls.Certificate, error)
func LoadX509PairsFromParams ¶
func LoadX509PairsFromParams(parameters url.Values) ([]utls.Certificate, error)
Types ¶
type CertificatePin ¶
type PeerVerifierFunc ¶
type PeerVerifierFunc func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
func GetCertificatePinningAndInsecure ¶
func GetCertificatePinningAndInsecure(parameters url.Values) (vFunc PeerVerifierFunc, insecureBool bool, err error)
Click to show internal directories.
Click to hide internal directories.