---
name: "rpc_gss_get_versions"
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_get_versions"
---

# rpc\_gss\_get\_versions(3)

Get supported protocol version

## NAME

**rpc\_gss\_get\_versions** – Get supported protocol version

## LIBRARY

library “librpcsec\_gss”

## SYNOPSIS

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

*bool\_t*\

**rpc\_gss\_get\_versions**(*u\_int \*vers\_hi*, *u\_int \*vers\_lo*);

## DESCRIPTION

Return the highest and lowest supported versions of the RPCSEC\_GSS protocol.

## PARAMETERS

- vers\_hi

  The value of *\*vers\_hi* is set to the highest supported protocol version

- vers\_lo

  The value of *\*vers\_lo* is set to the lowest supported protocol version

## SEE ALSO

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

## HISTORY

The **rpc\_gss\_get\_versions** function first appeared in FreeBSD 8.0.

## AUTHORS

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