gss_import_sec_context(3)gss_import_sec_context(3)NAMEgss_import_sec_context - Import a security context established by
another process.
SYNOPSIS
#include <gssapi/gssapi.h>
OM_uint32 gss_import_sec_context(
OM_uint32 * minor_status,
const gss_buffer_t interprocess_token,
gss_ctx_id_t * context_handle );
PARAMETERS
Kerberos 5 error code. Token received from the exporting process.
After this call, the token is no longer needed. Security context
imported by this function.
The application must release resources associated with the con‐
text after use with a call to gss_delete_sec_context().
DESCRIPTION
The gss_import_sec_context() function allows a process to import a
security context established by another process.
A given interprocess token should be imported only once.
Note
Because of the way sequence numbers are incremented in security con‐
texts, a single security context must not be used with multiple initia‐
tors and acceptors.
After use, the application must release resources associated with the
context with a call to gss_delete_sec_context().
RETURN VALUES
GSS_S_CALL_BAD_STRUCTURE 03xxxxxx
GSS_S_CALL_INACCESSIBLE_READ 01xxxxxx
GSS_S_CALL_INACCESSIBLE_WRITE 02xxxxxx
GSS_S_COMPLETE 00000000
GSS_S_DEFECTIVE_TOKEN xx09xxxx
GSS_S_FAILURE xx0Dxxxx
GSS_S_NO_CONTEXT xx08xxxx
GSS_S_UNAUTHORIZED xx0Fxxxx
GSS_S_UNAVAILABLE xx10xxxx
SEE ALSO
Functions: gss_accept_sec_context(3), gss_delete_sec_context(3),
gss_export_sec_context(3)gss_import_sec_context(3)