def get_all_mechs():
minor_status = ffi.new('<STR_LIT>')<EOL>mech_set = ffi.new('<STR_LIT>')<EOL>try:<EOL><INDENT>retval = C.gss_indicate_mechs(minor_status, mech_set)<EOL>if GSS_ERROR(retval):<EOL><INDENT>raise _exception_for_status(retval, minor_status[<NUM_LIT:0>])<EOL><DEDENT><DEDENT>except:<EOL><INDENT>_release_OID_set(mech_set)<EOL>raise<EOL><DEDENT>return OIDSet(oid_set=mech_set)<EOL>
Return an :class:`OIDSet` of all the mechanisms supported by the underlying GSSAPI
implementation.