RPC_GSS_MECH_TO_OID(3)
π RPC_GSS_MECH_TO_OID(3) β like, the manual page bestie
okay so real talk: this is RPC_GSS_MECH_TO_OID(3), a page from the Library Functions Manual (section 3, functions, you know the vibe), and it's here to teach you how to turn a mechanism name into a GSS-API oid. yes, that's the whole plot. it's a short one. we love a concise queen. π
β¨ NAME β¨
rpc_gss_mech_to_oid β bestie, it converts a mechanism name into a GSS-API oid. that's it. that's the job. π
π LIBRARY π
RPC GSS-API Authentication Library (librpcsec_gss, -lrpcsec_gss)
so when you link this, you're linking against librpcsec_gss and the flag is -lrpcsec_gss. write it down. put it in your notes app. π«Ά
π¦ SYNOPSIS π¦
#include <rpc/rpcsec_gss.h>
bool_t
rpc_gss_mech_to_oid(const char *mech, gss_OID *oid_ret);
look at her go. #include <rpc/rpcsec_gss.h>, function returns bool_t, takes a const char *mech and a gss_OID *oid_ret. iconic signature tbh. β
π DESCRIPTION π
no cap, this function is a little detective. it looks up a mechanism by name by reading the file /etc/gss/mech. that's the source of truth, that's where it goes shopping. literally just opens that file and searches. simple. elegant. she ate. π₯
heads up bestie: the lookup is driven by /etc/gss/mech, so if that file doesn't have what you're looking for, neither does this function. π
πΈ PARAMETERS πΈ
mechβ the mechanism name you're searching for. the thing you're hunting. the main character of the search. πoid_retβ if the mechanism is found, the corresponding GSS-API oid gets returned in*oid_ret. so you pass in a pointer-to-oid and she fills it in for you. give her somewhere to put the goods. π
π RETURN VALUES π
if the mechanism is found, TRUE is returned. otherwise FALSE. that's the whole vibe check β TRUE or FALSE, found or not found, slay or no slay. π
π§ SEE ALSO π§
go read those next, iykyk. πβ¨
π HISTORY π
the rpc_gss_mech_to_oid function first appeared in FreeBSD 8.0. a legend was born. π
π AUTHORS π
this manual page was written by Doug Rabson <dfr@FreeBSD.org>. thank you Doug, we appreciate you fr fr. π«Ά
okay that's the whole page bestie, big hugs, go convert some mechanism names β and remember this is the Debian version of the page, dated January 26, 2010, so it's vintage and that's on periodt. π πΈπ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008 Isilon Inc http://www.isilon.com/
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms