rpc_gss_getcred
—
Get authorization information for an RPC request
RPC GSS-API Authentication Library
(librpcsec_gss, -lrpcsec_gss)
#include
<rpc/rpcsec_gss.h>
AUTH *
rpc_gss_getcred
(struct svc_req
*req, rpc_gss_rawcred_t **rcred,
rpc_gss_ucred_t **ucred, void
**cookie);
This function returns the RPCSEC_GSS authenticated credentials
associated with an RPC request.
- req
- The RPC request to query
- rcred
- If non-null, *rcred is set to point at the raw
credentials for this request
- ucred
-
- rcred
- If non-null, *ucred is set to point at the
corresponding unix credentials
- cookie
- If non-null, *cookie is set to the cookie value
returned by a callback function registered with
rpc_gss_set_callback
()
Returns TRUE
if successful,
FALSE
otherwise.
The rpc_gss_getcred
function first
appeared in FreeBSD 8.0.