- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
I'm sure this question is answered somewhere in the documentation, but I havent managed to find it, and can't seem to impliment an ocall with a return value.
Is a ocall returning a value possible? Can one do it with pointers, or would that be blocked due to untrusted code attempting to acess trusted memory?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OCALLs can return values. You may use pointers but you'll have to specify attributes if you want to copy data out from/back into the enclave.
For additional information, have a look at the Developer Reference, Enclave Development Basics / Calling Functions outside the Enclave and Enclave Development Basics / Enclave Definition Language Syntax / Pointers.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OCALLs can return values. You may use pointers but you'll have to specify attributes if you want to copy data out from/back into the enclave.
For additional information, have a look at the Developer Reference, Enclave Development Basics / Calling Functions outside the Enclave and Enclave Development Basics / Enclave Definition Language Syntax / Pointers.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page