Documentation ¶
Index ¶
- Constants
- func AddCACertificateContents(caContent string) bool
- func AddCACertificateFile(caFile string) Error
- func AddCertificateContents(keyContents, certContents string) Error
- func AddCertificateFile(keyFile, certFile string) Error
- func AddRootCAContents(rootContent string) bool
- func AddRootCAFile(rootFile string) Error
- 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 IsCodeError() bool
- 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) uint16
- func SetVersionMax(vers uint16)
- func SetVersionMin(vers uint16)
Constants ¶
View Source
const ( ErrorParamsEmpty errors.CodeError = iota + errors.MIN_PKG_Certif ErrorFileStat ErrorFileRead ErrorCertAppend ErrorCertKeyPairLoad ErrorCertKeyPairParse )
Variables ¶
This section is empty.
Functions ¶
func AddCACertificateFile ¶
func AddCACertificateFile(caFile string) Error
func AddCertificateContents ¶
func AddCertificateContents(keyContents, certContents string) Error
func AddCertificateFile ¶
func AddCertificateFile(keyFile, certFile string) Error
func AddRootCAContents ¶
func AddRootCAFile ¶
func AddRootCAFile(rootFile string) Error
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 IsCodeError ¶
func IsCodeError() bool
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 SetVersionMax ¶
func SetVersionMax(vers uint16)
func SetVersionMin ¶
func SetVersionMin(vers uint16)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.