---
name: "rpc_gss_getcred"
section: "3t"
platform: "linux"
package: "libtirpc"
version: "1.3.8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rpc_gss_getcred/3t"
---

# rpc\_gss\_getcred(3t)

Get authorization information for an RPC request

## NAME

**rpc\_gss\_getcred** – Get authorization information for an RPC request

## 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

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

## 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**()

## RETURN VALUES

Returns TRUE if successful, FALSE otherwise.

## AVAILABILITY

The **rpc\_gss\_getcred**() function is part of libtirpc.

## SEE ALSO

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

## AUTHORS

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