gssapi/oids.py
def get_all_mechs():
    """
    Return an :class:`OIDSet` of all the mechanisms supported by the underlying GSSAPI
    implementation.
    """
    minor_status = ffi.new('OM_uint32[1]')
    mech_set = ffi.new('gss_OID_set[1]')
    try:
        retval = C.gss_indicate_mechs(minor_status, mech_set)
        if GSS_ERROR(retval):
            raise _exception_for_status(retval, minor_status[0])
    except:
        _release_OID_set(mech_set)
        raise
    return OIDSet(oid_set=mech_set)
def get_all_mechs():
    """
    Return an :class:`OIDSet` of all the mechanisms supported by the underlying GSSAPI
    implementation.
    """
    minor_status = ffi.new('OM_uint32[1]')
    mech_set = ffi.new('gss_OID_set[1]')
    try:
        retval = C.gss_indicate_mechs(minor_status, mech_set)
        if GSS_ERROR(retval):
            raise _exception_for_status(retval, minor_status[0])
    except:
        _release_OID_set(mech_set)
        raise
    return OIDSet(oid_set=mech_set)
Return an :class:`OIDSet` of all the mechanisms supported by the underlying GSSAPI
    implementation.