forked from TrueCloudLab/certificates
Remove unused function.
This commit is contained in:
parent
9d51c2cceb
commit
640f523150
1 changed files with 0 additions and 8 deletions
|
@ -798,14 +798,6 @@ func encodeCertificate(c *x509.Certificate) []byte {
|
|||
})
|
||||
}
|
||||
|
||||
func encodePublicKey(key crypto.PublicKey) ([]byte, error) {
|
||||
block, err := pemutil.Serialize(key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return pem.EncodeToMemory(block), nil
|
||||
}
|
||||
|
||||
func encodePrivateKey(key crypto.PrivateKey, pass []byte) ([]byte, error) {
|
||||
block, err := pemutil.Serialize(key, pemutil.WithPassword(pass))
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue