rpc_gss_oid_to_mech
—
Convert a mechanism name to a GSS-API oid
RPC GSS-API Authentication Library (librpcsec_gss,
-lrpcsec_gss)
#include <rpc/rpcsec_gss.h>
bool_t
rpc_gss_oid_to_mech
(gss_OID
oid, const char
**mech_ret);
This function looks up a mechanism by oid by reading the file /etc/gss/mech.
- oid
- The mechanism oid to search for
- mech_ret
- If the mechanism is found, the corresponding mechanism name is returned in
*mech_ret
If the mechanism is found, TRUE
is returned, otherwise
FALSE
.
The rpc_gss_oid_to_mech
function first appeared in
FreeBSD 8.0.