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