To create a credential handle for an INITIATE credential type, the application calls the gssdce_login_context_to_cred( ) routine and specifies its login context as input to the routine. The routine creates a credential handle that points to the credential consisting of that login context.
An application can also use a BOTH type credential to initiate a security context. Use the gss_acquire_cred( ) routine to create a BOTH type credential, as explained in the next topic.
When the application uses a BOTH credential, the gss_acquire_cred( ) routine creates a login context from the key table information. Then, it uses the login context to create the credential. For more details, see the gss_acquire_cred(3sec) reference page.