krb5_init_creds_get_creds - Retrieve acquired credentials from an initial credentials context.

krb5_error_code krb5_init_creds_get_creds(krb5_context context, krb5_init_creds_context ctx, krb5_creds *creds)
param

[in] context - Library context

[in] ctx - Initial credentials context

[out] creds - Acquired credentials

retval
  • 0 Success; otherwise - Kerberos error codes

This function copies the acquired initial credentials from ctx into creds , after the successful completion of krb5_init_creds_get() or krb5_init_creds_step(). Use krb5_free_cred_contents() to free creds when it is no longer needed.