skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_cc_get_type  Return the CC prefix krb5_cc_get_type Return the CC prefix
go to next page: krb5_cc_next_cred  Fetch the next credentials entrykrb5_cc_next_cred Fetch the next credentials entry
end of book navigation links

krb5_cc_initialize -- Create/refresh a credentials cache 



C Prototype 

krb5_error_code krb5_cc_initialize(
         krb5_context     context,
         krb5_ccache      id,
         krb5_principal   primary_principal );

Arguments 

context
(input/output)
 The context structure.
id (input/output)  A credentials cache identifier.
primary_principal (input) The primary principal for the credentials cache.

Description 

This routine creates or refreshes a credentials cache identified by id with the primary principal set to primary_principal. If the credentials cache already exists, its contents are destroyed.

This routine also modifies cache identified by id.

Return Values 

This routine returns one of the following KRB5 status codes:

System errors.

Permission errors.



go to previous page: krb5_cc_get_type  Return the CC prefix krb5_cc_get_type Return the CC prefix
go to next page: krb5_cc_next_cred  Fetch the next credentials entrykrb5_cc_next_cred Fetch the next credentials entry