Fix minor typos (#11941)
Co-authored-by: Nathan Baulch <nathan.baulch@gmail.com>
This commit is contained in:
parent
889afa9abd
commit
dcfa4507ae
47 changed files with 125 additions and 125 deletions
|
|
@ -442,7 +442,7 @@ func getFakeHostSSLCert(host string) (cert, key []byte) {
|
|||
|
||||
// fullChainCert checks if a certificate file contains issues in the intermediate CA chain
|
||||
// Returns a new certificate with the intermediate certificates.
|
||||
// If the certificate does not contains issues with the chain it return an empty byte array
|
||||
// If the certificate does not contain issues with the chain it returns an empty byte array
|
||||
func fullChainCert(in []byte) ([]byte, error) {
|
||||
cert, err := certUtil.DecodeCertificate(in)
|
||||
if err != nil {
|
||||
|
|
@ -523,7 +523,7 @@ func (tl *TLSListener) GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, e
|
|||
return tl.certificate, tl.err
|
||||
}
|
||||
|
||||
// TLSConfig instanciates a TLS configuration, always providing an up to date certificate
|
||||
// TLSConfig instantiates a TLS configuration, always providing an up to date certificate
|
||||
func (tl *TLSListener) TLSConfig() *tls.Config {
|
||||
return &tls.Config{
|
||||
GetCertificate: tl.GetCertificate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue