Contents

GSSCreateName(_:_:_:)

Returns a GSS name given a buffer and a type.

Declaration

func GSSCreateName(_ name: CFTypeRef, _ name_type: gss_const_OID, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> gss_name_t?

Parameters

  • name:

    A name buffer describing the credential. The buffer is either a CFDataRef or a CFStringRef containing the name.

  • name_type:

    An OID name type constant, such as Gss_c_nt_user_name.

  • error:

    A CFErrorRef pointer that the function sets to point at a new error object if the function call fails, or NULL to ignore the error. If the error exists, it describes the reason for the failure, and you are responsible for releasing it with CFRelease.

Return Value

A GSS name for the given buffer and type, or NULL on failure. Release this object with a call to gss_release_name(_:_:) when you are done with it.

See Also

Creation and Destruction