Love Hörnquist Åstrand
1cdcbe1493
Implement krb5_cc_ops->default_name.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:15:27 +00:00
Love Hörnquist Åstrand
64cf3425d8
Implement the move operation.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 12:44:40 +00:00
Love Hörnquist Åstrand
7a39e6f7d9
doxygen documentation
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-10 10:38:15 +00:00
Love Hörnquist Åstrand
38251964e0
(init_fcc): provide better error codes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21977 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-18 20:09:22 +00:00
Love Hörnquist Åstrand
4a924643eb
(fcc_get_cache_next): avoid const warning.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19379 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:35:52 +00:00
Love Hörnquist Åstrand
0c000a62f7
Support "iteration" of file credential caches by giving the user back
...
the default file credential cache and only that.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 16:48:28 +00:00
Love Hörnquist Åstrand
a699632a9e
(fcc_gen_new): fix a use after free, found by IBM checker.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:04:37 +00:00
Love Hörnquist Åstrand
a20802f00e
Revert previous, I was confused.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 13:31:19 +00:00
Love Hörnquist Åstrand
d48840959b
(fcc_store_cred): default to MIT style ticket flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 10:11:47 +00:00
Love Hörnquist Åstrand
c3579d1f6c
rename to avoid shadowing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15446 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 20:25:20 +00:00
Love Hörnquist Åstrand
ea4a3e5660
When returning a new error code, either set error string or clear it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-31 22:06:15 +00:00
Love Hörnquist Åstrand
14747af538
(_krb5_xunlock): catch the error and turn it into something sensable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-31 21:48:57 +00:00
Love Hörnquist Åstrand
fd9149ac7d
(fcc_get_first): check return value from malloc, memset the structure,
...
make sure cursor doesn't point to freed memory on failure.
From: Wynn Wilkes <wwilkes@vintela.com >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-17 17:46:46 +00:00
Johan Danielsson
9125cb5647
Fix the cache flags bitorder issue with a storage flag instead of a
...
separate function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13767 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 21:17:02 +00:00
Love Hörnquist Åstrand
b209d68f8c
(fcc_remove_cred): simplistic implementation, XXX add locking
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-17 17:09:31 +00:00
Love Hörnquist Åstrand
39dc6f4fa5
(fcc_store_cred): NULL terminate krb5_config_get_bool_default' arglist
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13502 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-10 13:28:15 +00:00
Love Hörnquist Åstrand
cd4be77fc7
(fcc_store_cred): use [libdefaults]fcc-mit-ticketflags=boolean to
...
decide what format to write the fcc in. Default to mit version (aka
heimdal 0.7)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 17:40:05 +00:00
Love Hörnquist Åstrand
73447cd88f
(_krb5_xlock): handle that everything was ok, and don't put an error
...
in the error strings then
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 21:22:52 +00:00
Love Hörnquist Åstrand
9c3fc6f67f
(_krb5_xlock): catch EINVAL and assume that it means that the
...
filesystem doesn't support locking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-21 13:20:06 +00:00
Love Hörnquist Åstrand
94fde1ea7a
(_krb5_xlock): fix compile error in last commit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:43:15 +00:00
Love Hörnquist Åstrand
a561725fdd
internally export x{,un}lock and thus prefix them with _krb5_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:05:42 +00:00
Johan Danielsson
8ad04cfa43
Sleep forever waiting for lock. Previous method doesn't work well with
...
a large number of clients accessing the cache at the same time, and
there is no simple way to add a timeout to the lock.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13019 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-16 09:06:39 +00:00
Johan Danielsson
41d0b9d1bd
(erase_file): revert a change in previous; if the ccache is a symlink,
...
kdestroy should remove it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12995 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-13 13:03:12 +00:00
Johan Danielsson
14bfec3d54
implement locking
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-13 12:21:15 +00:00
Johan Danielsson
6cd4200dd5
storage tweaks
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 14:04:46 +00:00
Assar Westerlund
d27aa3b62e
add some krb5_{set,clear}_error_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Assar Westerlund
d4cfdf5ad8
call krb5_set_error_string when open fails fatally
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-07 21:10:48 +00:00
Johan Danielsson
652ab82f80
pretend that empty files are non-existant
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-05 09:15:10 +00:00
Assar Westerlund
8ea704a5f9
(fcc_gen_new): do mkstemp correctly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8700 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-19 01:24:38 +00:00
Assar Westerlund
d2d8614e57
(scrub_file): do the second seek correctly.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8255 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-16 00:02:32 +00:00
Assar Westerlund
01dbf026d8
(scrub_file): new function
...
(erase_file): re-write, use scrub_file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8221 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-13 20:23:49 +00:00
Assar Westerlund
65b1e86c6e
(erase_file): try to detect symlink games. also call revoke.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8216 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-12 15:27:57 +00:00
Assar Westerlund
856f923ea7
(fcc_initialize): init `ret'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-29 08:52:03 +00:00
Assar Westerlund
d00fd58d9c
(fcc_initialize): just forget about over-writing the old cred cache.
...
it's too much of a hazzle trying to do this safely.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-25 21:49:20 +00:00
Assar Westerlund
f666e7d92c
(fcc_get_principal): be more truthful on errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8189 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-16 16:16:30 +00:00
Assar Westerlund
ee1912847a
(fcc_initialize, fcc_store_cred): verify that stores and close succeed
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7982 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-24 14:46:53 +00:00
Johan Danielsson
c5b916ca6f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
c5b93f2925
remove O_BINARY
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6941 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-12 20:49:28 +00:00
Johan Danielsson
b380f51a81
(erase_file): don't malloc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6044 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-25 14:55:49 +00:00
Johan Danielsson
bdaedd40ce
add support for reading and writing old version cache files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6031 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-24 16:37:47 +00:00
Assar Westerlund
432abd5432
(FILENAME): simplify definition
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6021 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-20 22:10:58 +00:00
Johan Danielsson
48650b3b4a
add some support for reading and writing old cache formats;
...
(fcc_store_cred): use krb5_store_creds; (fcc_read_cred): use
krb5_ret_creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5963 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-15 15:47:05 +00:00
Assar Westerlund
7216ac7c07
(fcc_destroy): don't call fcc_close
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5753 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-24 22:26:06 +00:00
Johan Danielsson
6af0e18e36
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5624 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-19 13:54:22 +00:00
Johan Danielsson
25ccdc7672
(fcc_gen_new): implement
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5453 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-28 17:19:15 +00:00
Assar Westerlund
1d40845bb5
(fcc_destroy): fix typo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5184 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-02 02:16:44 +00:00
Assar Westerlund
f178df827c
O_BINARY
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4830 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-01 05:18:02 +00:00
Assar Westerlund
d5b19415c7
const-ize
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3758 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-02 04:13:42 +00:00
Johan Danielsson
f6cff0f63f
cleanup fcc_get_next
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3595 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 21:04:32 +00:00
Johan Danielsson
4b0d76528d
fcc_ops -> krb5_fcc_ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3260 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-29 00:45:35 +00:00