summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache
Commit message (Collapse)AuthorAgeFilesLines
...
* update dependenciesKen Raeburn2002-06-151-21/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14522 dc483132-0cff-0310-8789-dd5450dbe970
* rebuild dependenciesKen Raeburn2002-06-151-20/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14516 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c: Use _WIN32 instead of _WINSOCKAPI_ becauseDanilo Almeida2002-04-112-1/+15
| | | | | | | | | | | | | _WINSOCKAPI_ depends on the Winsock header used (i.e., Winsock 2 does not define this). What we are really trying to check for is Win32. Include port-sockets.h for Win32. (NOTE: Why is NEED_SOCKETS being defined after the inclusion of k5-int.h? That is pretty useless... What we probably should do is more consitently used NEED_SOCKETS instead of manually putting in network code. However, some people would probably have issues with the build being slower...) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14376 dc483132-0cff-0310-8789-dd5450dbe970
* Include errno.hDanilo Almeida2002-04-012-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14315 dc483132-0cff-0310-8789-dd5450dbe970
* In directories building libraries, generate dependencies for .so/.po files tooKen Raeburn2001-10-201-10/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13828 dc483132-0cff-0310-8789-dd5450dbe970
* Update automatic dependencies to work on Windows by using $(OUTPRE) andKen Raeburn2001-10-111-34/+35
| | | | | | | $(OBJEXT). Change a couple of UNIX rules to not trigger incorrectly on Windows. Rebuild dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13801 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c (krb5_fcc_read): Remove const from fourth argument toEzra Peisach2001-10-102-1/+6
| | | | | | function to match prototype earlier in file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13797 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-107-168/+177
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo also says we can get rid of _MSDOS (Win16) tests, and explicit ↵Ken Raeburn2001-10-0613-61/+41
| | | | | | FAR/NEAR specs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13786 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo says we can get rid of the DLLIMP stuff nowKen Raeburn2001-10-0410-37/+46
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13775 dc483132-0cff-0310-8789-dd5450dbe970
* dependenciesKen Raeburn2001-09-011-0/+46
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13725 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_stdio.c: Add a "mode" field to krb5_scc_data to keep track ofTom Yu2000-10-312-0/+18
| | | | | | | | | | | what mode the file was opened in. (krb5_scc_close_file): Ignore EBADF from fflush() if the file was opened for readonly access. For some reason NetBSD's fflush() exhibits this behavior. (krb5_scc_open_file): Save the mode with which the file was opened in data->mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12825 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_stdio.c, cc_file.c: Unsigned/signed int cleanupEzra Peisach2000-10-173-32/+86
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12780 dc483132-0cff-0310-8789-dd5450dbe970
* * stdcc.c, stdcc.h (krb5_stdcc_get_name): Declare as returningEzra Peisach2000-10-033-2/+7
| | | | | | const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12709 dc483132-0cff-0310-8789-dd5450dbe970
* * ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name insteadEzra Peisach2000-10-036-10/+20
| | | | | | | | | | | of krb5_rc_get_name on credential cache. * cc_file.c (krb5_fcc_get_name): * cc_stdio.c (krb5_scc_get_name): * cc_memory.c (krb5_mcc_get_name): * ccfns.c (krb5_cc_get_name): Declare as returning const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12707 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: MoreEzra Peisach2000-09-256-24/+37
| | | | | | signed/unsigned fixes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12671 dc483132-0cff-0310-8789-dd5450dbe970
* * t_cc.c: Code cleanup. Test more failure modes of the cache libraryEzra Peisach2000-09-245-10/+142
| | | | | | | | | | | | * cccopy.c (krb5_cc_copy_creds): Memory leak. Call krb5_cc_end_seq_get. * cc_file.c (krb5_fcc_generate_new): Set flags to KRB5_TC_OPENCLOSE, otherwise parts of the library assumes that the file is open, when it is not. * cc_stdio.c (krb5_scc_generate_new): Same as cc_file.c change. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12668 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-unix): Build and exectute t_ccEzra Peisach2000-09-223-3/+220
| | | | | | * t_cc.c: Test harness for memory, stdio and file caches. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12665 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c, cc_stdio.c: Remove unused krb5_[fs]cc_default_name()Danilo Almeida2000-07-204-22/+37
| | | | | | | | prototype. * cc_stdio.c: Fix calling convention for op functions. * ccfns.c (krb5_cc_get_type): Fix calling convention. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12573 dc483132-0cff-0310-8789-dd5450dbe970
* * stdcc.h: Include k5-int.h to get krb5_ccache definitionDanilo Almeida2000-07-202-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12572 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Change ${CC} and ${OBJS} to $(CC) and $(OBJS) soDanilo Almeida2000-07-202-1/+6
| | | | | | nmake does not freak out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12570 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_memory.c (mcc_head): Combine static declaration and initializationKen Raeburn2000-07-192-3/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12566 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_memory.c (mcc_head): Now staticKen Raeburn2000-07-142-2/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12552 dc483132-0cff-0310-8789-dd5450dbe970
* missed a stray #endifKen Raeburn2000-07-141-2/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12551 dc483132-0cff-0310-8789-dd5450dbe970
* merge duplicate copyright notices; eliminate #if 0 codeKen Raeburn2000-07-142-1664/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12550 dc483132-0cff-0310-8789-dd5450dbe970
* Eliminate duplicated copyright messages, and most "former file foo.c" markersKen Raeburn2000-07-141-948/+30
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12549 dc483132-0cff-0310-8789-dd5450dbe970
* keep scc.h tooKen Raeburn2000-07-142-1/+102
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12548 dc483132-0cff-0310-8789-dd5450dbe970
* Delete subdirectories we aren't compiling any more.Ken Raeburn2000-07-1483-8403/+105
| | | | | | | | Rescued contents of "README", "todo", and test cases. Test cases aren't actually used at present; this should be fixed, but they'll probably need some work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12547 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse ccache implementations file, stdio, memory into single files.Ken Raeburn2000-07-147-26/+7582
| | | | | | | (Old files not removed yet.) Add a new file for krb5_cc_* dispatch functions that are no longer macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12544 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unused variablesEzra Peisach2000-06-294-2/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12454 dc483132-0cff-0310-8789-dd5450dbe970
* ccdefault.c: Add newline at end of file (compiler warning)Ezra Peisach2000-06-292-12/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12453 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-06-08 Alexandra Ellwood <lxs@mit.edu> * stdcc_util.c (dupCCtoK5, ↵Alexandra Ellwood2000-06-092-4/+9
| | | | | | dupK5toCC): Fixed code that stores times in localtime, not in kdc time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12369 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-015-10/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* This time really: 2000-5-31 Alexandra Ellwood <lxs@mit.edu> ccdefault.c: ↵Alexandra Ellwood2000-05-311-1/+1
| | | | | | Changed kerberosPrincipal_V5 to kerberosVersion_V5 to reflect the new KLL constant name git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12323 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-5-31 Alexandra Ellwood <lxs@mit.edu> ccdefault.c: Changed ↵Alexandra Ellwood2000-05-312-9/+5
| | | | | | kerberosPrincipal_V5 to kerberosVersion_V5 to reflect the new KLL constant name git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12322 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-5-19 Alexandra Ellwood <lxs@mit.edu>Alexandra Ellwood2000-05-192-16/+45
| | | | | | | | | | | * ccdefault.c: Added krb5int_cc_default. This function supports the Kerberos Login Library and pops up a dialog if the cache does not contain valid tickets. This is used to automatically get a tgt before obtaining service tickets. Note that this should be an internal function because callers don't expect krb5_cc_default to pop up a dialog! (We found this out the hard way :-) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12292 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unused variables. Reindent to krb5 coding style. Remove whitespaceDanilo Almeida2000-05-183-392/+396
| | | | | | at end of lines. Replace C++ comments with C comments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12284 dc483132-0cff-0310-8789-dd5450dbe970
* Do not define or try to load cc_lock_request, which isDanilo Almeida2000-05-182-0/+11
| | | | | | not actually used anywhere in the code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12283 dc483132-0cff-0310-8789-dd5450dbe970
* * stdcc_util.c (dupCCtoK5, dupK5toCC): Miro Jurisic2000-05-042-2/+12
| | | | | | | Conditionalized local/KDC time conversions for Mac-only until we figure out what to do about that git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12220 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-4-26 Alexandra Ellwood <lxs@mit.edu>Alexandra Ellwood2000-04-262-2/+7
| | | | | | | * ccdefault.c: Added version number to internal Kerberos Login Library routine. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12196 dc483132-0cff-0310-8789-dd5450dbe970
* * winccld.h: Define CC_API_VER2 for all Windows code using ccapi.Danilo Almeida2000-04-184-1/+62
| | | | | | | | | | | | Update dynamic loading declarations to use CC_API_VER2. * stdcc.c: Define CC_API_VER2 if not defined rather than just if not Windows. * winccld.c (LoadFuncs): Get error on DLL load failure even though we do not use it in case we are doing source-level debugging. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12178 dc483132-0cff-0310-8789-dd5450dbe970
* Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2000-04-151-1/+1
| | | | | | - typo "==" should have been "=" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12172 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-4-13 Alexandra Ellwood <lxs@mit.edu>Alexandra Ellwood2000-04-131-0/+10
| | | | | | | | | | | | * ccdefault.c: Added Kerberos Login library support (with ifdefs to control whether or not it is on. Also added support to store a krb5_principal in the os_context along with the default ccache name (if known, this principal is the same as the last time we looked at the ccache. * ccdefname.c: Added support to store a krb5_principal in the os_context along with the default ccache name (if known, this principal is the same as the last time we looked at the ccache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12170 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-4-13 Alexandra Ellwood <lxs@mit.edu>Alexandra Ellwood2000-04-131-1/+62
| | | | | | | | | * ccdefault.c: Added Kerberos Login library support (with ifdefs to control whether or not it is on. Also added support to store a krb5_principal in the os_context along with the default ccache name (if known, this principal is the same as the last time we looked at the ccache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12166 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-04-07 Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2000-04-072-4/+12
| | | | | | | | | | * stdcc_util.c (copyCCDataArrayToK5, copyCCDataArrayToK5): * stdcc_util.c (dupCCtoK5, dupK5toCC): memory was being allocated as (sizeof(foo) * count + 1) instead of (sizeof(foo) * (count + 1)) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12153 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-04-03 Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2000-04-042-4/+12
| | | | | | | | | | * stdcc_util.c (copyCCDataArrayToK5, copyCCDataArrayToK5): * stdcc_util.c (dupCCtoK5, dupK5toCC): Changed all references to the type UInt32 to unsigned int since UInt32 is not a standard type on Unix or Win32 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12149 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-03-24 Alexandra Ellwood <lxs@mit.edu>Alexandra Ellwood2000-03-242-115/+189
| | | | | | | | | | | * stdcc_util.c (copyCCDataArrayToK5, copyCCDataArrayToK5): Modified to copy authdata as well... this code may have bugs since I couldn't get a good case where authdata != NULL * stdcc_util.c (dupCCtoK5, dupK5toCC): Added code to store times in localtime, not in kdc time. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12139 dc483132-0cff-0310-8789-dd5450dbe970
* * stdcc.c (krb5_stdcc_destroy): Do not mask KRB5_FCC_NOFILE errorDanilo Almeida2000-03-162-6/+15
| | | | | | on destroy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12117 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed lxs' fix: strlen (x) + 1 instead of strlen (x+1)Miro Jurisic2000-02-112-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12035 dc483132-0cff-0310-8789-dd5450dbe970
* changelog updated for stdcc_util.c changeAlexandra Ellwood2000-02-101-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12033 dc483132-0cff-0310-8789-dd5450dbe970