Commit 37af0636 authored by Dan Peterson's avatar Dan Peterson Committed by Brad Fitzpatrick

crypto/x509: remove broken link in ParsePKCS8PrivateKey documentation

Fixes #14776

Change-Id: I55423ac643f18542b9fd1386ed98dec47fb678aa
Reviewed-on: https://go-review.googlesource.com/21890Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent e07a4459
...@@ -21,8 +21,8 @@ type pkcs8 struct { ...@@ -21,8 +21,8 @@ type pkcs8 struct {
// optional attributes omitted. // optional attributes omitted.
} }
// ParsePKCS8PrivateKey parses an unencrypted, PKCS#8 private key. See // ParsePKCS8PrivateKey parses an unencrypted, PKCS#8 private key.
// http://www.rsa.com/rsalabs/node.asp?id=2130 and RFC5208. // See RFC 5208.
func ParsePKCS8PrivateKey(der []byte) (key interface{}, err error) { func ParsePKCS8PrivateKey(der []byte) (key interface{}, err error) {
var privKey pkcs8 var privKey pkcs8
if _, err := asn1.Unmarshal(der, &privKey); err != nil { if _, err := asn1.Unmarshal(der, &privKey); err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment