Documentation ¶
Index ¶
- func AddCACertificateContents(caContent string) bool
- func AddCACertificateFile(caFile string) bool
- func AddCertificateContents(keyContents, certContents string) bool
- func AddCertificateFile(keyFile, certFile string) bool
- func AddRootCAContents(rootContent string) bool
- func AddRootCAFile(rootFile string) bool
- func AppendCertificates(cert []tls.Certificate) []tls.Certificate
- func CheckCertificates() bool
- func GetCertificates() []tls.Certificate
- func GetCipherKey(cipher string) uint16
- func GetClientCA() *x509.CertPool
- func GetCurveID(curveRef string) tls.CurveID
- func GetRootCA() *x509.CertPool
- func GetTLSConfig(serverName string) *tls.Config
- func GetTlsConfigCertificates() *tls.Config
- func InitRootCA()
- func SetCipherList(cipher []uint16)
- func SetClientAuth(auth string)
- func SetCurve(curves []tls.CurveID)
- func SetDynamicSizing(enable bool)
- func SetSessionTicket(enable bool)
- func SetStringTlsVersion(tlsVersStr string)
- func SetTlsVersion(tlsVers uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCACertificateFile ¶
func AddCertificateContents ¶
func AddCertificateFile ¶
func AddRootCAContents ¶
func AddRootCAFile ¶
func AppendCertificates ¶
func AppendCertificates(cert []tls.Certificate) []tls.Certificate
func CheckCertificates ¶
func CheckCertificates() bool
func GetCertificates ¶
func GetCertificates() []tls.Certificate
func GetCipherKey ¶
func GetClientCA ¶
func GetCurveID ¶
func GetTLSConfig ¶
func InitRootCA ¶
func InitRootCA()
func SetCipherList ¶
func SetCipherList(cipher []uint16)
func SetClientAuth ¶
func SetClientAuth(auth string)
func SetDynamicSizing ¶
func SetDynamicSizing(enable bool)
func SetSessionTicket ¶
func SetSessionTicket(enable bool)
func SetStringTlsVersion ¶
func SetStringTlsVersion(tlsVersStr string)
func SetTlsVersion ¶
func SetTlsVersion(tlsVers uint16)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.