Contents

gss_destroy_cred(_:_:)

Purges a credential from memory.

Declaration

func gss_destroy_cred(_ min_stat: UnsafeMutablePointer<OM_uint32>, _ cred_handle: UnsafeMutablePointer<gss_cred_id_t?>) -> OM_uint32

Parameters

  • min_stat:

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

  • cred_handle:

    The credential to eliminate from memory.

Mentioned in

Return Value

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

Discussion

This function actively purges the credential from memory and then calls gss_release_cred(_:_:) to free the memory. This is a more secure option than calling the release function directly.

See Also

Allocation and Deallocation