---
name: "rpc_gss_set_defaults"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/rpc_gss_set_defaults"
---

# rpc\_gss\_set\_defaults(3)

set service and quality of protection

## NAME

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

## LIBRARY

library “librpcsec\_gss”

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

## SEE ALSO

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

## HISTORY

The **rpc\_gss\_set\_defaults** function first appeared in FreeBSD 8.0.

## AUTHORS

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