mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
crypto/x509: fix typo in comment.
Fixes #6633. R=golang-dev, r CC=golang-dev https://golang.org/cl/40720046
This commit is contained in:
parent
5744be9fe4
commit
2f43ce7fb0
1 changed files with 1 additions and 1 deletions
|
@ -1355,7 +1355,7 @@ func subjectBytes(cert *Certificate) ([]byte, error) {
|
|||
// The returned slice is the certificate in DER encoding.
|
||||
//
|
||||
// The only supported key types are RSA and ECDSA (*rsa.PublicKey or
|
||||
// *ecdsa.PublicKey for pub, *rsa.PrivateKey or *ecdsa.PublicKey for priv).
|
||||
// *ecdsa.PublicKey for pub, *rsa.PrivateKey or *ecdsa.PrivateKey for priv).
|
||||
func CreateCertificate(rand io.Reader, template, parent *Certificate, pub interface{}, priv interface{}) (cert []byte, err error) {
|
||||
var publicKeyBytes []byte
|
||||
var publicKeyAlgorithm pkix.AlgorithmIdentifier
|
||||
|
|
Loading…
Reference in a new issue