Documentation ¶
Index ¶
- func AddCertificate(certificate string) error
- func GetGlobalTLSConfig(tlsConfig *tls.Config) *tls.Config
- func GetSpecifiedFingerprintTLSConfig(tlsConfig *tls.Config, fingerprint string) (*tls.Config, error)
- func GetTLSConfig(tlsConfig *tls.Config, fingerprint string, customCA string, ...) (*tls.Config, error)
- func ResetCertificate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCertificate ¶
func GetSpecifiedFingerprintTLSConfig ¶
func GetSpecifiedFingerprintTLSConfig(tlsConfig *tls.Config, fingerprint string) (*tls.Config, error)
GetSpecifiedFingerprintTLSConfig specified fingerprint
func GetTLSConfig ¶
func GetTLSConfig(tlsConfig *tls.Config, fingerprint string, customCA string, customCAString string) (*tls.Config, error)
GetTLSConfig specified fingerprint, customCA and customCAString
func ResetCertificate ¶
func ResetCertificate()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.