---
name: "rpc_gss_set_defaults"
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_set_defaults/3t"
---

# rpc\_gss\_set\_defaults(3t)

set service and quality of protection

## NAME

**rpc\_gss\_set\_defaults** – set service and quality of protection

## SYNOPSIS

**#include \<rpc/rpcsec\_gss.h\>**

*bool\_t*\

**rpc\_gss\_set\_defaults**(*AUTH \*auth*, *rpc\_gss\_service\_t service*, *const char \*qop*);

## DESCRIPTION

Set the service and quality of protection to be used for RPC requests. The new values apply for the rest of the lifetime of the context (unless changed again with this function).

## PARAMETERS

- service

  The service type to use for subsequent RPC requests

- qop

  The quality of protection to use or NULL for the default

## RETURN VALUES

Returns TRUE if the values were set

## AVAILABILITY

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

## SEE ALSO

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

## AUTHORS

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