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
Assar Westerlund
b1ea862adb
Implement version 4 of the ccache format.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2923 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 23:30:18 +00:00
Assar Westerlund
b0647ce691
don't call clsoe in destroy, now that at the ccache level
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2789 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 03:51:25 +00:00
Assar Westerlund
1151da7449
clean-up
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2731 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-07 20:21:22 +00:00
Johan Danielsson
5a32a5c8e7
Add copyright notice.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
Assar Westerlund
cd08122983
more freeing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2233 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-13 01:11:45 +00:00
Johan Danielsson
13924cbcd9
Restore ticket flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2195 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 15:02:38 +00:00
Johan Danielsson
a76e01a359
Save ticket flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2169 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 13:04:24 +00:00
Johan Danielsson
48800fe65b
Move file cache from cache.c.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1832 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 22:38:18 +00:00