summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux
diff options
context:
space:
mode:
authorChong Cai <chongc@google.com>2021-10-14 16:24:35 -0700
committergVisor bot <gvisor-bot@google.com>2021-10-14 16:27:07 -0700
commit6f4fcc4bac81f0fc73712b0216e3ed50b056a925 (patch)
tree940883c4eacc34d7f05c7625197a2d26e67ee0e7 /pkg/abi/linux
parent81f284f9d4af4170c86ad182e2f6f2cc9b3c565a (diff)
Add a size parameter
PiperOrigin-RevId: 403214414
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r--pkg/abi/linux/ioctl.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkg/abi/linux/ioctl.go b/pkg/abi/linux/ioctl.go
index 29062c97a..4526d3f95 100644
--- a/pkg/abi/linux/ioctl.go
+++ b/pkg/abi/linux/ioctl.go
@@ -180,8 +180,12 @@ var (
// to get quote.
const SizeOfQuoteInputData = 64
-// SignReport is a struct that gets signed quote from input data.
+// SignReport is a struct that gets signed quote from input data. The
+// serialized quote is copied to buf.
+// size is an input that specifies the size of buf. When returned, it's updated
+// to the size of quote.
type SignReport struct {
- data [64]byte
- quote []byte
+ data [64]byte
+ size uint32
+ buf []byte
}