rune/libenclave: drop invalid fields in Quote
Dropping invalid fields in Quote to avoid invalid Attestation
Evidence Payload error(ErrorCode: 400).
@@ -355,5 +355,5 @@ func GetQuote(report []byte, spid string, linkable bool) ([]byte, error) {
logrus.Debugf(" Signature Length: %d\n",
q.SigLen)
- return resp.GetQuote.GetQuote(), nil
+ return quote[0 : q.SigLen+QuoteLength], nil
}
