rpc_gss_mech_to_oid
—
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_mech_to_oid
(const
char *mech, gss_OID
*oid_ret);
This function looks up a mechanism by name by reading the file /etc/gss/mech.
- mech
- The mechanism name to search for
- oid_ret
- If the mechanism is found, the corresponding GSS-API oid is returned in
*oid_ret
If the mechanism is found, TRUE
is returned, otherwise
FALSE
.
The rpc_gss_mech_to_oid
function first appeared in
FreeBSD 8.0.