RPC\_GSS\_QOP\_TO\_NUM(3) Library Functions Manual RPC\_GSS\_QOP\_TO\_NUM(3)

# [NAME](#NAME)

`rpc_gss_qop_to_num` — Convert a Quality of Protection name to number

# [SYNOPSIS](#SYNOPSIS)

`#include <rpc/rpcsec_gss.h>`

`bool_t`  
`rpc_gss_qop_to_num`(`const char *qop`, `const char *mech`, `u_int *num_ret`);

# [DESCRIPTION](#DESCRIPTION)

This function returns the numeric QOP value associated with the GSS\_API QOP "qop" and mechanism "mech."

# [PARAMETERS](#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](#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  
is left untouched.

# [AVAILABILITY](#AVAILABILITY)

The [`rpc_gss_qop_to_num`](#rpc_gss_qop_to_num)() function is part of libtirpc.

# [SEE ALSO](#SEE_ALSO)

[rpc(3)](/man/os/libtirpc/rpc.3), [gssapi(3)](/man/os/libtirpc/gssapi.3), [rpcsec\_gss(3)](/man/os/libtirpc/rpcsec_gss.3)

# [AUTHORS](#AUTHORS)

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

January 26, 2010 Linux 4.19.0-gvisor

---

Document: rpc_gss_qop_to_num(3t) from libtirpc 1.3.8-r0 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/libtirpc/libtirpc/1.3.8/libtirpc-1.3.8.tar.bz2
