rpc_gss_mech_to_oid(3t)

rpc_gss_mech_to_oid3t

Convert a mechanism name to a gss-api oid

Usage

#include <rpc/rpcsec_gss.h>

bool_t

rpc_gss_mech_to_oid(const char *mech, gss_OID *oid_ret);

Overview

This function returns the GSS OID associated with the GSS_API mechanism "mech".

Parameters

mech

The name of a GSS_API mechanism. "kerberos_v5" is currently the only supported mechanism.

oid_ret

Buffer in which to place the returned OID

Return values

If the GSS_API mechanism name is recognized, TRUE is returned. The corresponding GSS-API oid is returned in *oid_ret. Otherwise FALSE is returned and *oid_ret is left untouched.

Releases

Unchanged in 5 releases since Debian 10 (Buster).

  1. 10–Arch

Availability

The rpc_gss_mech_to_oid() function is part of libtirpc.

Authors

This manual page was written by Doug Rabson ⟨[email protected]⟩.

From libtirpc 1.3.8-1 in Arch Linux 2026-11-07. Parsed by carta from the page's mdoc source.