rpcsec_gss.3n (2010 09)

r
rpcsec_gss(3N) rpcsec_gss(3N)
rpc_gss_options_ret_t
Structure containing GSS-API options returned to the calling function,
rpc_gss_seccreate()
.
MAX_GSS_MECH is defined as 128.
typedef struct {
int major_status;
int minor_status;
u_int rpcsec_version; /* vers. of RPCSEC_GSS */
int ret_flags;
int time_req;
gss_ctx_id_t gss_context;
char actual_mechanism[MAX_GSS_MECH]; /* mechanism used */
} rpc_gss_options_ret_t;
rpc_gss_principal_t
The (mechanism-dependent, opaque) client principal type is used as an argument to the
rpc_gss_get_principal_name()
function, and in the gsscred table. Also referenced by the
rpc_gss_rawcred_t
structure for raw credentials (see below).
typedef struct {
int len;
char name[1];
} *rpc_gss_principal_t;
rpc_gss_rawcred_t
Structure for raw credentials used by rpc_gss_getcred()
and rpc_gss_set_callback().
typedef struct {
u_int version; /* RPC version # */
char *mechanism; /* security mechanism */
char *qop; /* Quality of Protection */
rpc_gss_principal_t client_principal; /* client name */
char *svc_principal; /* server name */
rpc_gss_service_t service; /* service (integrity, etc.) */
}rpc_gss_rawcred_t;
rpc_gss_ucred_t
Structure for UNIX credentials used by rpc_gss_getcred()
as an alternative to
rpc_gss_rawcred_t
.
typedef struct {
uid_t uid; /* user ID */
gid_t gid; /* group ID */
short gidlen;
git_t *gidlist; /* list of groups */
} rpc_gss_ucred_t;
rpc_gss_callback_t
Callback structure used by rpc_gss_set_callback().
typedef struct {
u_int program; /* RPC program # */
u_int version; /* RPC version # */
bool_t (*callback)(); /* user-defined callback routine */
} rpc_gss_callback_t;
rpc_gss_lock_t
Structure used by a callback routine to enforce a particular QOP and service for a session. The locked
field is normally set to FALSE; the server sets it to TRUE in order to lock the session. (A locked context
will reject all requests having different QOP and service values than those found in the raw_cred struc-
ture.) For more information, see rpc_gss_set_callback(3N).
typedef struct {
bool_t locked;
rpc_gss_rawcred_t *raw_cred;
} rpc_gss_lock_t;
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010