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

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

Convert a Quality of Protection name to number

## NAME

**rpc\_gss\_qop\_to\_num** – Convert a Quality of Protection name to number

## 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 returns the numeric QOP value associated with the GSS\_API QOP "qop" and mechanism "mech."

## PARAMETERS

- qop

  The name of Quality of Protection associated with the GSS\_API mechanism "mech". "GSS\_C\_QOP\_DEFAULT" is currently the only supported QOP.

- mech

  The name of a GSS\_API mechanism. "kerberos\_v5" is currently the only supported mechanism.

- number\_ret

  Buffer in which to place the returned QOP number

## RETURN VALUES

If the QOP and mechanism names are recognized, TRUE is returned. The corresponding QOP number is returned in *\*num\_ret*. Otherwise FALSE is returned and number\_ret is left untouched.

## AVAILABILITY

The **rpc\_gss\_qop\_to\_num**() 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⟩.
