next up previous contents index
Next: 11.2.6 context_to_sid: Obtain the Up: 11.2 oskit_security: Security Server Previous: 11.2.4 member_sid: Compute a

11.2.5 sid_to_context: Obtain the security context for a given SID

 

SYNOPSIS

#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);,

DESCRIPTION

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.

PARAMETERS

security
The security server.
sid
The SID.
scontext
The security context.
scontext_len
The length of the security context in bytes.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



Utah Flux Research Group