Contents

GSSCreateError(_:_:_:)

Returns an error object based on GSS-API major and minor status codes.

Declaration

func GSSCreateError(_ mech: gss_const_OID, _ major_status: OM_uint32, _ minor_status: OM_uint32) -> Unmanaged<CFError>?

Parameters

  • mech:

    The underlying mechanism in use. For example, use Gss_krb5_mechanism for Kerberos. Use Gss_c_no_oid if none is available.

  • major_status:

    Major status code from a failed GSS-API function call.

  • minor_status:

    Minor status code from a failed GSS-API function call.

Return Value

A CFError instance that corresponds to the failure described by the inputs. Release the error with CFRelease when you are done with it.

See Also

Status and Error Creation