From 44b238c9b56ba6587887d38549e23245dfa5444c Mon Sep 17 00:00:00 2001 From: "YiLin.Li" Date: Thu, 3 Sep 2020 08:41:36 +0000 Subject: [PATCH] rune/libenclave: Get verified IAS report in PAL attest Call ias.GetVerifiedReport service rather than ias.Verify service to get IAS report in PAL attest Signed-off-by: Yilin Li --- rune/libenclave/internal/runtime/pal/pal_linux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rune/libenclave/internal/runtime/pal/pal_linux.go b/rune/libenclave/internal/runtime/pal/pal_linux.go index 4af135b..ad800de 100644 --- a/rune/libenclave/internal/runtime/pal/pal_linux.go +++ b/rune/libenclave/internal/runtime/pal/pal_linux.go @@ -139,9 +139,9 @@ func (pal *enclaveRuntimePal) Attest(spid string, subscriptionKey string, produc return err } - status := svc.Verify(quote) - if status.ErrorMessage != "" { - return fmt.Errorf("%s", status.ErrorMessage) + status, _, err := svc.GetVerifiedReport(quote) + if err != nil { + return fmt.Errorf("%s", err) } svc.ShowStatus(status) -- GitLab