Contents

gss_import_cred(_:_:_:)

Imports a credential from a token.

Declaration

func gss_import_cred(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ token: gss_buffer_t, _ cred_handle: UnsafeMutablePointer<gss_cred_id_t?>) -> OM_uint32

Parameters

  • minor_status:

    A pointer to the secondary status result that provides additional information in case of failure.

  • token:

    The token containing the data that represents the credential.

  • cred_handle:

    A pointer to a credential that the function uses to return the credential. Free the credential’s memory with Gss_release_cred(_:_:) when you are done with it.

Return Value

A status code set to GSS_S_COMPLETE on success. See Function Status for a description of other status outputs.

Discussion

You can import a credential from a token created with gss_export_cred(_:_:_:).

See Also

Import and Export