---
name: "rpc_gss_qop_to_num"
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_qop_to_num"
---

# rpc\_gss\_qop\_to\_num(3)

Convert a quality of protection name to number

## NAME

**rpc\_gss\_qop\_to\_num** – Convert a quality of protection name to number

## LIBRARY

library “librpcsec\_gss”

## SYNOPSIS

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

*bool\_t*\

**rpc\_gss\_qop\_to\_num**(*const char \*qop*, *const char \*mech*, *u\_int \*num\_ret*);

## DESCRIPTION

This function looks up a quality of protection by name by reading the file /etc/gss/qop.

## PARAMETERS

- qop

  The quality of protection to search for

- mech

  The mechanism name to search for

- number\_ret

  If the quality of protection is found, the corresponding number is returned in *\*num\_ret*

## RETURN VALUES

If the value is found, TRUE is returned, otherwise FALSE.

## SEE ALSO

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

## HISTORY

The **rpc\_gss\_qop\_to\_num** function first appeared in FreeBSD 8.0.

## AUTHORS

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