Skip to content

Commit

Permalink
Require enclave upon rmw_init() call. (#247)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic authored and ahcorde committed Oct 13, 2020
1 parent c4e5ca7 commit 5f43052
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rmw/include/rmw/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ rmw_get_zero_initialized_context(void);
* guard conditions, and is also required to properly call `rmw_shutdown()`.
*
* \pre The given options must have been initialized
* i.e. `rmw_init_options_init()` called on it.
* i.e. `rmw_init_options_init()` called on it and
* an enclave set.
* \pre The given context must be zero initialized.
*
* \post If initialization fails, context will remain zero initialized.
*
* \remarks If options are zero-initialized, then `RMW_RET_INVALID_ARGUMENT` is returned.
* If options are initialized but no enclave is provided, then `RMW_RET_INVALID_ARGUMENT`
* is returned.
* If context has been already initialized (`rmw_init()` was called on it), then
* `RMW_RET_INVALID_ARGUMENT` is returned.
*
Expand Down

0 comments on commit 5f43052

Please sign in to comment.