Contents

Context Services

Use context services to manage secure operations between endpoints.

Overview

You use these flags as input to gss_init_sec_context(_:_:_:_:_:_:_:_:_:_:_:_:_:) to request certain context services. You also receive them as output from both that function and gss_accept_sec_context(_:_:_:_:_:_:_:_:_:_:_:), indicating which services are actually engaged. Requesting a service does not guarantee its availability.

Because these flags represent the bits of an integer, you combine them with a bitwise OR and pull them apart using bitwise AND, as shown below.

OM_uint32 req_flags = GSS_C_DELEG_FLAG | GSS_C_MUTUAL_FLAG;
OM_uint32 ret_flags = 0;
//
// Call gss_init_sec_context() with req_flags; get ret_flags back
//
BOOL deleg  = (ret_flags & GSS_C_DELEG_FLAG)  ? YES : NO;
BOOL mutual = (ret_flags & GSS_C_MUTUAL_FLAG) ? YES : NO;

Topics

Flags

Address Families

Apple Source App Keys

Channel Bindings

Creation and Deletion

Inquiry and Limits

Import and Export

See Also

Memory and Context