#include <oskit/flask/security.h>OSKIT_COMDECL oskit_security_sid_to_context(oskit_security_t *security, oskit_security_id_t sid, [out] oskit_security_context_t *scontext, [out] oskit_u32_t *scontext_len);,
The oskit_security_sid_to_context function returns the security context associated with a particular SID. The scontext parameter is set to point to a dynamically-allocated string of the correct size. The scontext_len parameter is set to the length of the security context string, including the terminating NULL character.
- security
- The security server.
- sid
- The SID.
- scontext
- The security context.
- scontext_len
- The length of the security context in bytes.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.