Module Name: krb5 Committed By: raeburn Date: Wed Jun 30 23:24:43 UTC 2004 Modified Files: krb5/src/lib/krb5/ccache/ChangeLog krb5/src/lib/krb5/ccache/cc_file.c Added Files: Removed Files: Log Message Thread-safety for file-based credentials caches. * cc_file.c (krb5_fcc_data): Added a mutex. (krb5_fcc_read*, krb5_fcc_write, krb5_fcc_store_*, krb5_fcc_open_file, krb5_fcc_skip_header, krb5_fcc_skip_principal): Verify that the mutex is locked. (MAYBE_OPEN): Verify that the mutex is locked; unlock it if returning an error. (krb5_fcc_initialize, krb5_fcc_start_seq_get, krb5_fcc_get_principal, krb5_fcc_store, krb5_fcc_set_flags): Lock and unlock the mutex. (krb5_fcc_close): Likewise. Destroy the mutex when done. (krb5_fcc_destroy): Merge stdio and non-stdio versions a little more. Destroy the mutex when done. (krb5_fcc_resolve): Initialize and lock the mutex. (krb5_fcc_next_cred): Lock and unlock the mutex. Merge the stdio and non-stdio branches a little more. To generate a diff of this commit: cvs diff -r5.127 -r5.128 krb5/src/lib/krb5/ccache/ChangeLog cvs diff -r5.34 -r5.35 krb5/src/lib/krb5/ccache/cc_file.c