Several functions are useful for getting information about the installed security system:
rpc_gss_get_mechanisms() returns a list of installed security mechanisms
rpc_gss_is_installed() checks to see if a specified mechanism is installed
rpc_gss_get_mech_info() returns valid QOPs for a given mechanism
Using these functions gives the programmer latitude in avoiding hard-coding security parameters in applications. (See Table 4-8 and the rpcsec_gss(3N) man page for a list of all RPCSEC_GSS functions.)