RPC\_GSS\_GETCRED(3) Library Functions Manual RPC\_GSS\_GETCRED(3)

# [NAME](#NAME)

`rpc_gss_getcred` — Get authorization information for an RPC request

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

This function returns the RPCSEC\_GSS authenticated credentials associated with an RPC request.

# [PARAMETERS](#PARAMETERS)

req

The RPC request to query

rcred

If non-null, `*rcred` is set to point at the raw credentials for this request

ucred

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`](#rpc_gss_set_callback)()

# [RETURN VALUES](#RETURN_VALUES)

Returns `TRUE` if successful, `FALSE` otherwise.

# [AVAILABILITY](#AVAILABILITY)

The [`rpc_gss_getcred`](#rpc_gss_getcred)() function is part of libtirpc.

# [SEE ALSO](#SEE_ALSO)

[rpc(3)](/man/os/libtirpc/rpc.3), [gssapi(3)](/man/os/libtirpc/gssapi.3), [rpc\_gss\_set\_callback(3)](/man/os/libtirpc/rpc_gss_set_callback.3), [rpcsec\_gss(3)](/man/os/libtirpc/rpcsec_gss.3)

# [AUTHORS](#AUTHORS)

This manual page was written by Doug Rabson ⟨dfr@FreeBSD.org⟩.

January 26, 2010 Linux 4.19.0-gvisor

---

Document: rpc_gss_getcred(3t) from libtirpc 1.3.8-r0 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/libtirpc/libtirpc/1.3.8/libtirpc-1.3.8.tar.bz2
