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
CFDataRefor aCFStringRefcontaining the name. - name_type:
An OID name type constant, such as Gss_c_nt_user_name.
- error:
A
CFErrorRefpointer that the function sets to point at a new error object if the function call fails, orNULLto ignore the error. If the error exists, it describes the reason for the failure, and you are responsible for releasing it withCFRelease.
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.