Commit Graph

66 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand 7e27a05d9a (krb5_cc_new_unique): new function to create a new credential cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:52:01 +00:00
Luke Howard 83b5139ce2 use cc_retrieve_cred if present rather than enumerating ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14528 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-02 07:29:14 +00:00
Love Hörnquist Åstrand 1851cd8507 drop ${time}, its not very useful
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-11 21:44:52 +00:00
Love Hörnquist Åstrand 92b867f617 Add _krb5_expand_default_cc_name that expand variables in the default
cc name. Supported variables now are: ${time},${uid} and ${null}


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-11 21:42:34 +00:00
Love Hörnquist Åstrand 3ea7dd11bb (krb5_cc_set_default_name): s/libdefault/libdefaults/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-11 19:21:20 +00:00
Love Hörnquist Åstrand eb4103488f (krb5_cc_set_default_name): allow setting the default cc name, this is
not very useful for general purpose glue since its not possible to
glue in user information (like uid), but for CCAPI it works just fine


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-06 15:58:27 +00:00
Love Hörnquist Åstrand 91351971f7 add KRB5_LIB_FUNCTION to all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Johan Danielsson 26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Johan Danielsson 5eca4bbf39 add krb5_cc_next_cred_match() and krb5_cc_copy_cred_match()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 17:20:19 +00:00
Love Hörnquist Åstrand 7866d861da add krb5_cc_get_prefix_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13702 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-13 11:55:32 +00:00
Love Hörnquist Åstrand 32a39134cf indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-25 11:33:29 +00:00
Love Hörnquist Åstrand f837df3b5a (krb5_cc_set_default_name): only read KRB5CCNAME when not suid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-25 08:26:36 +00:00
Love Hörnquist Åstrand dd752eed03 don't return value in void function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-16 14:46:46 +00:00
Love Hörnquist Åstrand 80b7b535a2 (krb5_cc_clear_mcred): new function, clear a krb5_creds to use with
krb5_cc_retrieve_cred


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12421 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:23:05 +00:00
Love Hörnquist Åstrand 49efe23229 (krb5_cc_get_ops): new function, return ops for a id
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-16 18:23:59 +00:00
Love Hörnquist Åstrand 30056ee50a (krb5_cc_default): if krb5_cc_default_name returned memory, don't return ENOMEM
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-13 01:35:45 +00:00
Love Hörnquist Åstrand 3bac5fb118 (krb5_cc_set_default_name): new function
(krb5_cc_default_name): use krb5_cc_set_default_name


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-10 00:23:11 +00:00
Johan Danielsson 09ffce82b8 (krb5_cc_register): break out of loop when the same type is found;
spotted by Wynn Wilkes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-29 16:08:23 +00:00
Johan Danielsson e1493a6229 (krb5_cc_register): don't make a copy of the prefix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:38:26 +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 06a574edbb transpose last two paramaters to krb5_cc_next_cred (as MIT does, and not as they document). From "Jacques A. Vidrine" <n@nectar.com>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 19:55:13 +00:00
Johan Danielsson 0aa7857674 check for NULL remove_cred function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-05 09:18:29 +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 403d675b1c remove extra character
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7356 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-12 16:00:44 +00:00
Assar Westerlund a74d27d3d7 const-ize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-10 04:55:28 +00:00
Assar Westerlund 4170031efa clean-up and comment-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7119 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-06 16:28:06 +00:00
Assar Westerlund d184e76ce8 (krb5_cc_resolve): move the registration of the standard types of
credential caches to context


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6937 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-12 20:44:40 +00:00
Assar Westerlund d29c0e7838 (krb5_cc_resolve): fall-back to files if there's no prefix. also
clean-up a little bit.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6424 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-06 00:40:58 +00:00
Johan Danielsson a09cdb7965 add krb5_cc_get_version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6033 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-24 16:38:45 +00:00
Johan Danielsson 36347ee17b add krb5_cc_get_type that returns type of a cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5974 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-18 13:46:40 +00:00
Johan Danielsson aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Johan Danielsson 3d4c84ec7b +cc_copy_cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4063 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 01:18:03 +00:00
Johan Danielsson 3e4b661605 Use krb5_compare_creds.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3896 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 00:53:47 +00:00
Johan Danielsson 26f01ec809 fix prototype for cc_register
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3884 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-10 21:41:49 +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 8aad553ddb [fm]cc_ops -> krb5_[fm]cc_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3261 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-29 00:46:18 +00:00
Johan Danielsson 9be1ba4e3a krb5_cc_retrieve_cred_any_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2895 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 02:32:25 +00:00
Assar Westerlund 7038ffc083 (krb5_cc_gen_new): copy the newly allocated krb5_ccache
(krb5_cc_destroy): call krb5_cc_close
(krb5_cc_retrieve_cred): delete the unused creds


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2788 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 03:50:37 +00:00
Assar Westerlund 71a0cf93ea cleanup
added mcache


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2727 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-07 20:19:08 +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 6335294d14 (krb5_cc_default_name): buffer range checking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2314 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-15 15:20:48 +00:00
Assar Westerlund 7d30cab27f better freeing in `krb5_cc_close'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2229 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-13 01:08:41 +00:00
Johan Danielsson e74d27572f Allow more than one cache type.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1831 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 22:37:25 +00:00
Assar Westerlund de628b7a2f (krb5_cc_get_name): return default if `id' == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1437 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-16 17:16:37 +00:00
Assar Westerlund aa0c1fc1c0 clean-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1318 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-08 11:08:58 +00:00
Assar Westerlund 1c474702bb now seems to work again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1289 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-08 07:16:26 +00:00
Johan Danielsson d99672295c Use new storage functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1283 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-08 06:01:01 +00:00
Assar Westerlund 6ffbd5848e moved all store and ret functions to store.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1215 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-02-08 15:01:07 +00:00
Johan Danielsson 866a8e6f87 Add better error checking some useful return values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1135 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-12-17 23:55:36 +00:00
Johan Danielsson a8ca03b172 Get correct address type from cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1121 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-12-16 15:36:11 +00:00