RPC_GSS_MECH_TO_OID(3)

πŸ’… RPC_GSS_MECH_TO_OID(3) β€” the one from the Library Functions Manual

okay bestie, sit down, hydrate, and let me tell you about rpc_gss_mech_to_oid β€” it's the little glow-up function that takes your mechanism's name and hands you back its GSS-API oid. no cap. it's giving matchmaker energy fr fr. πŸŽ€


✨ NAME ✨

rpc_gss_mech_to_oid β€” turn a mechanism name into a GSS-API oid πŸ’«


🌸 SYNOPSIS 🌸

#include <rpc/rpcsec_gss.h>

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this function returns the GSS OID that's associated with the GSS_API mechanism "mech". that's it. that's the whole vibe. you give it a name, it gives you the oid. iconic behavior honestly. πŸ‘‘


πŸŽ€ PARAMETERS πŸŽ€

  • mech β€” the name of a GSS_API mechanism. right now "kerberos_v5" is literally the only supported mechanism, so that's your one and only option, bestie. it's giving exclusive. πŸ’…
  • oid_ret β€” the buffer where the returned OID gets placed. put it in the little pocket, it's safe there. 🫢

πŸ”₯ RETURN VALUES πŸ”₯

  • if the GSS_API mechanism name is recognized β†’ TRUE comes back, and the corresponding GSS-API oid lands in *oid_ret. slay. ✨
  • otherwise β†’ FALSE comes back, and *oid_ret is left untouched. like, not even a little bit. it stays exactly as it was. no touchy. πŸ™ˆ

🌈 AVAILABILITY 🌈

the rpc_gss_mech_to_oid() function is part of libtirpc. periodt. πŸ‘‘


πŸ’– SEE ALSO πŸ’–

go read those too, iykyk. 🧚


⭐ AUTHORS ⭐

this manual page was written by Doug Rabson <dfr@FreeBSD.org>. absolute legend, we love them for this. 🌟


and that's the whole page, bestie! written on Debian, dated January 26, 2010 β€” a vintage icon, honestly. the rpc_gss_mech_to_oid(3) manual name is folded in right up top where it belongs, and now you know every single detail. go forth and oid responsibly. πŸ’œπŸ“
πŸ“¦ where this page comes from