提交 44b238c9 编写于 作者: Y YiLin.Li 提交者: jia zhang

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: NYilin Li <YiLin.Li@linux.alibaba.com>
上级 445375dc
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册