rpc_gss_getcred(3t)

rpc_gss_getcred3t

Get authorization information for an rpc request

Usage

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

Overview

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.

Releases

Unchanged in 5 releases since Debian 10 (Buster).

  1. 10–Arch

Availability

The rpc_gss_getcred() function is part of libtirpc.

Authors

This manual page was written by Doug Rabson ⟨[email protected]⟩.

From libtirpc 1.3.8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.