From bef3b2411e92fd3c1b2453b2cf20992e92331c53 Mon Sep 17 00:00:00 2001 From: Yogesh Deshpande Date: Thu, 5 Oct 2023 13:52:44 +0100 Subject: [PATCH] Rename tcg_dice to riot Signed-off-by: Yogesh Deshpande --- scheme/tcg-dice/Makefile | 2 +- scheme/tcg-dice/evidence_handler.go | 4 ++-- scheme/tcg-dice/evidence_handler_test.go | 2 +- scheme/tcg-dice/plugin/combined/Makefile | 4 ++-- scheme/tcg-dice/scheme.go | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scheme/tcg-dice/Makefile b/scheme/tcg-dice/Makefile index 434310e3..3fd7c3ea 100644 --- a/scheme/tcg-dice/Makefile +++ b/scheme/tcg-dice/Makefile @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 .DEFAULT_GOAL := test -GOPKG := github.com/veraison/services/scheme/tcg-dice +GOPKG := github.com/veraison/services/scheme/riot SRCS := $(wildcard *.go) SUBDIR += plugin diff --git a/scheme/tcg-dice/evidence_handler.go b/scheme/tcg-dice/evidence_handler.go index 89da14db..35caee71 100644 --- a/scheme/tcg-dice/evidence_handler.go +++ b/scheme/tcg-dice/evidence_handler.go @@ -1,7 +1,7 @@ // Copyright 2021-2023 Contributors to the Veraison project. // SPDX-License-Identifier: Apache-2.0 -package tcg_dice +package riot import ( "crypto/x509" @@ -22,7 +22,7 @@ type EvidenceHandler struct { } func (s EvidenceHandler) GetName() string { - return "tcg-dice-evidence-handler" + return "riot-evidence-handler" } func (s EvidenceHandler) GetAttestationScheme() string { diff --git a/scheme/tcg-dice/evidence_handler_test.go b/scheme/tcg-dice/evidence_handler_test.go index c260a4af..02ba9870 100644 --- a/scheme/tcg-dice/evidence_handler_test.go +++ b/scheme/tcg-dice/evidence_handler_test.go @@ -1,7 +1,7 @@ // Copyright 2021-2023 Contributors to the Veraison project. // SPDX-License-Identifier: Apache-2.0 -package tcg_dice +package riot import ( "os" diff --git a/scheme/tcg-dice/plugin/combined/Makefile b/scheme/tcg-dice/plugin/combined/Makefile index c64147c0..d3387928 100644 --- a/scheme/tcg-dice/plugin/combined/Makefile +++ b/scheme/tcg-dice/plugin/combined/Makefile @@ -1,8 +1,8 @@ # Copyright 2021 Contributors to the Veraison project. # SPDX-License-Identifier: Apache-2.0 -PLUGIN := ../../../bin/tcg-dice.plugin -GOPKG := github.com/veraison/services/scheme/tcg-dice +PLUGIN := ../../../bin/riot.plugin +GOPKG := github.com/veraison/services/scheme/riot SRCS := main.go include ../../../../mk/common.mk diff --git a/scheme/tcg-dice/scheme.go b/scheme/tcg-dice/scheme.go index 176f55bb..31c961f6 100644 --- a/scheme/tcg-dice/scheme.go +++ b/scheme/tcg-dice/scheme.go @@ -1,8 +1,8 @@ // Copyright 2023 Contributors to the Veraison project. // SPDX-License-Identifier: Apache-2.0 -package tcg_dice +package riot -const SchemeName = "TCG_DICE" +const SchemeName = "riot" var EvidenceMediaTypes = []string{ "application/pem-certificate-chain",