From 9c67c6d06f6d52d8aedb964d94b080c18aa78f65 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Thu, 21 Sep 2023 13:47:13 +0100 Subject: [PATCH] fix: vts: ensure nonce is in the result The nonce was being added to the initial appraisal result during GetEvidence. However, that result is later replaced by one generated by the scheme handler, and the nonce was lost (the handler does not have direct access to the nonce). Signed-off-by: Sergei Trofimov --- vts/trustedservices/trustedservices_grpc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vts/trustedservices/trustedservices_grpc.go b/vts/trustedservices/trustedservices_grpc.go index c5e1e909..d836e74e 100644 --- a/vts/trustedservices/trustedservices_grpc.go +++ b/vts/trustedservices/trustedservices_grpc.go @@ -387,6 +387,7 @@ func (o *GRPC) GetAttestation( if err != nil { return o.finalize(appraisal, err) } + appraisedResult.Nonce = appraisal.Result.Nonce appraisal.Result = appraisedResult appraisal.InitPolicyID()