aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/ccache/cc_retr.c
AgeCommit message (Collapse)AuthorFilesLines
2009-10-31make mark-cstyleTom Yu1-160/+161
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
2009-04-12Remove dead assignment of variables that are never usedEzra Peisach1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22194 dc483132-0cff-0310-8789-dd5450dbe970
2008-08-07Don't use memcmp for comparing structures of valuesKen Raeburn1-2/+10
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20634 dc483132-0cff-0310-8789-dd5450dbe970
2007-05-10Define and use some inline helper functions for comparing data and authdata ↵Ken Raeburn1-19/+5
structures, instead of open-coding checks of multiple fields everywhere. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19544 dc483132-0cff-0310-8789-dd5450dbe970
2006-12-05krb5_cc_remove should work for the CCAPIAlexandra Ellwood1-0/+99
Implemented a working krb5_cc_remove for the CCAPI cache type. Added a private support function krb5_creds_compare() which checks if two krb5_creds are identical. This function should be needed by implementations of krb5_cc_remove for other ccache types. ticket: new owner: tlyu target_version: 1.6 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18923 dc483132-0cff-0310-8789-dd5450dbe970
2004-11-16Now a kvno invocation will only open the ccache file a small number ofKen Raeburn1-2/+17
times, but there's still excessive seeking and re-reading of data happening. * cc_retr.c (krb5_cc_retrieve_cred_seq): Temporarily clear the KRB5_TC_OPENCLOSE flag on the credentials cache while reading multiple entries from it. ticket: 2763 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16873 dc483132-0cff-0310-8789-dd5450dbe970
2004-03-19 * cc_mslsa.c:Jeffrey Altman1-0/+1
Add missing return statements in krb5_lcc_start_seq_get() * cc-int.h: New file - Add prototypes for cc internal functions * cc_retr.c - include cc-int.h ticket: new target_version: 1.3.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16185 dc483132-0cff-0310-8789-dd5450dbe970
2003-12-19 * cc_retr.c: Extract the test to determine if a credential matchesJeffrey Altman1-28/+36
a requested credential according to the specified fields into a private function: krb5int_cc_creds_match_request() * cc_mslsa.c: Extend the functionality of krb5_lcc_retrieve() to perform a MS Kerberos LSA ticket request if there is no matching credential in the cache. The MS Kerberos LSA places the following restriction on what tickets it will place into the LSA cache: tickets obtained by an application request for a specific set of kerberos flags or enctype will not be cached. Therefore, we first make a request with no flags or enctype in the hope that we will be lucky and get the right ones anyway. If not, we make the application's request and return that ticket if it matches the other criteria. Implemented a similar technique for krb5_lcc_store(). Since we can not write to the cache, when a store request is made we instead perform a ticket request through the lsa for a matching credential. If we receive one, we return success. Otherwise, we return the KRB5_CC_READONLY error. With these changes I am now able to operate entirely with the MSLSA ccache as the default cache provided the MS LSA credentials are for the principal I wish to use. Obviously, one cannot change principals while the MSLSA ccache is the default. ticket: 2049 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15939 dc483132-0cff-0310-8789-dd5450dbe970
2002-09-03protoizeKen Raeburn1-29/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14820 dc483132-0cff-0310-8789-dd5450dbe970
2000-09-25 * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: MoreEzra Peisach1-2/+3
signed/unsigned fixes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12671 dc483132-0cff-0310-8789-dd5450dbe970
1999-09-24copyright notice updates from 1.1 branchKen Raeburn1-1/+4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
1999-09-01implement KRB5_TC_SUPPORTED_KTYPES and common _retrieve methods; from 1.1 branchKen Raeburn1-0/+283
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11768 dc483132-0cff-0310-8789-dd5450dbe970