[X509] missing return error

This commit is contained in:
Emman 2022-01-28 13:04:34 +08:00
parent f97273bb5a
commit de8cfcc588

View File

@ -54,7 +54,7 @@ func ParsePKCS8PrivateKey(der []byte) (key interface{}, err error) {
} else {
key = ecKey
}
return key, nil
return key, err
}
// MarshalPKCS8PrivateKey converts a private key to PKCS#8, ASN.1 DER form.