Commit Graph

3627 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
210ad42de3 Use size_t where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:20 +00:00
Love Hörnquist Åstrand
8e4183d9bb Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22867 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:16 +00:00
Love Hörnquist Åstrand
d46e99e899 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22866 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:12 +00:00
Love Hörnquist Åstrand
e7d288e184 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:07 +00:00
Love Hörnquist Åstrand
880d4d84f6 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:03 +00:00
Love Hörnquist Åstrand
0f4b203dd2 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:49:55 +00:00
Love Hörnquist Åstrand
6752ef7fbd simplify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:49:44 +00:00
Love Hörnquist Åstrand
319fa07a42 simplify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22859 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:49:40 +00:00
Love Hörnquist Åstrand
85af0f8b74 Add version number to krb5_cc_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22846 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:56 +00:00
Love Hörnquist Åstrand
331b920fdc Add version number to krb5_cc_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:51 +00:00
Love Hörnquist Åstrand
294407ee53 allow returning the default cc-type.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:45 +00:00
Love Hörnquist Åstrand
4538b95576 Add krb5_cc_switch, to set the default credential cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:26 +00:00
Love Hörnquist Åstrand
21abe2d75e Implement set_default.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:15 +00:00
Love Hörnquist Åstrand
ae1a8c5c2e Implement set_default.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:10 +00:00
Love Hörnquist Åstrand
97119eb872 Extend krb5_cc_ops and add set_default to set the default cc name for
a credential type.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22836 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:48:06 +00:00
Love Hörnquist Åstrand
2abf5f2292 test remove
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22834 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:58 +00:00
Love Hörnquist Åstrand
e7cc54f22b Support delete credential.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:53 +00:00
Love Hörnquist Åstrand
fd298c28c9 Make the remove cred slight more atomic, now it might lose creds, but
there will be no empty cache at any time.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:49 +00:00
Love Hörnquist Åstrand
9ec27909a6 Implement temporary table for interation of caches too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:46 +00:00
Love Hörnquist Åstrand
ed493c86ae Do credential iteration by temporary table.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:38 +00:00
Love Hörnquist Åstrand
5cb55b4baf Make default cache work.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:34 +00:00
Love Hörnquist Åstrand
d18af98b63 Search backward for :, make sample name not include :
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22827 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:30 +00:00
Love Hörnquist Åstrand
cdadd5e9ce first try to get the default cache code right
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22826 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:26 +00:00
Love Hörnquist Åstrand
972ea571f3 Translate ccErrInvalidCCache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:18 +00:00
Love Hörnquist Åstrand
dcc5363304 no test_init_vs_destroy for API: cache, more tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:12 +00:00
Love Hörnquist Åstrand
4fa7c09faf Make it pass most of the tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22822 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:07 +00:00
Love Hörnquist Åstrand
3a907b327a test acc and scc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:58 +00:00
Love Hörnquist Åstrand
2e62b79c07 Only release context if its in use.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:51 +00:00
Love Hörnquist Åstrand
7b897bbaa6 Implement cache iteration and clean up modue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:46 +00:00
Love Hörnquist Åstrand
aac08b6b46 Implement destroy.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:42 +00:00
Love Hörnquist Åstrand
8475d4d2a2 Make somewhat more working...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:37 +00:00
Love Hörnquist Åstrand
fce1b56ca5 Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:33 +00:00
Love Hörnquist Åstrand
703c3751ec Make the cache less broken, not working yet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22813 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:28 +00:00
Love Hörnquist Åstrand
6bd01e43fa export SCACHE cc ops.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:23 +00:00
Love Hörnquist Åstrand
846471a408 register SCACHE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22811 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:02 +00:00
Love Hörnquist Åstrand
ebc0843032 add libsqlite.al
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:45:55 +00:00
Love Hörnquist Åstrand
cf28ed384b Add scache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:45:42 +00:00
Love Hörnquist Åstrand
f942098565 First implementation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:45:23 +00:00
Love Hörnquist Åstrand
ab73d921f4 Make the storing credential an atomic write(2) to avoid signal races,
bug traced by Harald Bart and Lars Malinowsky.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-26 14:43:11 +00:00
Love Hörnquist Åstrand
56663c51c4 Make erase_file() to locking too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 20:56:02 +00:00
Love Hörnquist Åstrand
e9764e31f4 more verbose info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22784 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:38 +00:00
Love Hörnquist Åstrand
e28ac4acd9 Test krb5_cc_move().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:34 +00:00
Love Hörnquist Åstrand
adb952d840 Return KRB5_CC_NOSUPP on no kcm daemon in other end.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:31 +00:00
Love Hörnquist Åstrand
51feb996d3 add back k, its needed by consumers.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:26 +00:00
Love Hörnquist Åstrand
bdfb8e33c6 Drop unused variable krb5_kcmcache *k.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:21:00 +00:00
Love Hörnquist Åstrand
a760147457 first implementation of kcm-move-cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:20:55 +00:00
Love Hörnquist Åstrand
3394928100 Move _krb5_pk_copy_error() within #ifdef (from Björn Schlögl) and
rename to pk_copy_error


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 10:03:31 +00:00
Love Hörnquist Åstrand
e46ef6c72a Try both kdc server referral and the old client chasing mode.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:29 +00:00
Love Hörnquist Åstrand
2523a24965 Don't do canonicalize by default, make add_cred() sane, make loop
detection in credential fetching better.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:21 +00:00
Love Hörnquist Åstrand
20b3e07a73 Add flag EXTRACT_TICKET_AS_REQ.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22764 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:06 +00:00