diff --git a/backend.go b/backend.go index 7e7fbd3..71fe95a 100644 --- a/backend.go +++ b/backend.go @@ -142,7 +142,7 @@ func (sc *storageContext) getClient() (*ejbcaClient, error) { } logger.Trace("Creating new EJBCA authenticator") - authenticator, err := sc.Backend.newAuthenticator(sc.Context, config) + authenticator, err := sc.Backend.newAuthenticator(config) if err != nil { return nil, err } @@ -165,7 +165,7 @@ func (sc *storageContext) getClient() (*ejbcaClient, error) { return sc.Backend.client, nil } -func (b *ejbcaBackend) newAuthenticator(ctx context.Context, config *ejbcaConfig) (ejbca.Authenticator, error) { +func (b *ejbcaBackend) newAuthenticator(config *ejbcaConfig) (ejbca.Authenticator, error) { var err error logger := b.Logger().Named("ejbcaBackend.newAuthenticator") diff --git a/client.go b/client.go index 1c45753..ca2742c 100644 --- a/client.go +++ b/client.go @@ -17,7 +17,6 @@ limitations under the License. package ejbca import ( - "context" "encoding/json" "encoding/pem" "errors" @@ -34,8 +33,6 @@ type ejbcaClient struct { *ejbca.APIClient } -type newEjbcaAuthenticatorFunc func(context.Context) (ejbca.Authenticator, error) - // ejbcaAPIError is an intermediate interface that allows the EJBCA Vault PKI Engine to return // the EJBCA API error code as the Vault API error code. type ejbcaAPIError struct {