The gss_import_cred() routine accepts a credential token
created by the gss_export_cred() routine and creates a GSS-API
credential.
The gss_release_cred() routine should be called to release
the GSS-API credential when it is no longer needed. The credential token
created by one implementation of GSS-API cannot be used with a different
implementation of GSS-API.
Parameters
minor_status (Output)
Status code returned from the security mechanism.
cred_token (Input)
The credential token created by the gss_export_cred()
routine.
cred_handle (Output)
The credential handle returned for the GSS-API credential created from the
credential token. The gss_release_cred() routine should be
called to release the credential when it is no longer needed.
Return Value
The return value is one of the following status codes:
GSS_S_COMPLETE
The routine completed successfully.
GSS_S_FAILURE
The routine failed for reasons which are not defined at the GSS level. The
minor_status return parameter contains a mechanism-dependent error code
describing the reason for the failure.