Skip to content

Commit

Permalink
Change the method godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ph committed Sep 24, 2020
1 parent 43bfbcb commit bf266c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/common/transport/tlscommon/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func LoadCertificate(config *CertificateConfig) (*tls.Certificate, error) {
return &cert, nil
}

// ReadPEMFile reads a PEM format file on disk and decrypt it with the privided password and
// return the raw content.
// ReadPEMFile reads a PEM formatted string either from disk or passed as a plain text starting with a "-"
// and decrypt it with the provided password and return the raw content.
func ReadPEMFile(log *logp.Logger, s, passphrase string) ([]byte, error) {
pass := []byte(passphrase)
var blocks []*pem.Block
Expand Down

0 comments on commit bf266c8

Please sign in to comment.