Refactor initialization of SCEP authority

This commit is contained in:
Herman Slatman 2021-02-26 00:32:21 +01:00
parent f871f8135c
commit 7ad90d10b3
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F
19 changed files with 476 additions and 72 deletions

View file

@ -7,6 +7,7 @@ import (
"crypto/ed25519"
"crypto/rsa"
"crypto/x509"
"fmt"
"io"
"net"
"os"
@ -204,3 +205,8 @@ func (k *SSHAgentKMS) GetPublicKey(req *apiv1.GetPublicKeyRequest) (crypto.Publi
return nil, errors.Errorf("unsupported public key type %T", v)
}
}
// CreateDecrypter creates a crypto.Decrypter backed by ssh-agent
func (k *SSHAgentKMS) CreateDecrypter(req *apiv1.CreateDecrypterRequest) (crypto.Decrypter, error) {
return nil, fmt.Errorf("not implemented yet")
}