diff --git a/api/sshhost_test.go b/api/sshhost_test.go index 5cab4158..e85aa63e 100644 --- a/api/sshhost_test.go +++ b/api/sshhost_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/golang/protobuf/ptypes/empty" "github.com/theparanoids/crypki/config" "github.com/theparanoids/crypki/proto" + "google.golang.org/protobuf/types/known/emptypb" ) func TestGetHostSSHCertificateAvailableSigningKeys(t *testing.T) { @@ -53,7 +53,7 @@ func TestGetHostSSHCertificateAvailableSigningKeys(t *testing.T) { mssp := mockSigningServiceParam{KeyUsages: tt.KeyUsages, sendError: false} ss := initMockSigningService(mssp) var ctx context.Context - var e *empty.Empty + var e *emptypb.Empty keyMetas, err := ss.GetHostSSHCertificateAvailableSigningKeys(ctx, e) if err != nil { t.Fatal(err) diff --git a/go.mod b/go.mod index 20945e02..883947cf 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,6 @@ go 1.16 require ( github.com/golang/mock v1.5.0 - github.com/golang/protobuf v1.5.2 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 github.com/grpc-ecosystem/grpc-gateway/v2 v2.4.0 github.com/miekg/pkcs11 v1.0.3