Love Hörnquist Åstrand
657fc04cb0
(_krb5_expand_default_cc_name): plug memory leak. Found by IBM checker.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:54:48 +00:00
Love Hörnquist Åstrand
5ac7ec3e3e
(_krb5_expand_default_cc_name): avoid return pointer to freed memory
...
in the error case. Found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:52:26 +00:00
Love Hörnquist Åstrand
8bd0927d3b
(krb5_cc_set_default_name): use KRB5_DEFAULT_CCNAME.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 15:42:36 +00:00
Love Hörnquist Åstrand
6ccf928a53
(krb5_cc_get_prefix_ops): change the behavior to return NULL when its
...
not found, and fcc when the name starts with a '/'. Almost matches
behavior in other parts of the code, but can't really do that since
the name passed in to this function may only contain the prefix itself
without the colon.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16306 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 09:10:47 +00:00
Love Hörnquist Åstrand
459932f3ef
(krb5_cc_get_prefix_ops): if there are not colon (:) in the name, its
...
a file credential cachce
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 08:44:21 +00:00
Love Hörnquist Åstrand
91f8f1ce51
(krb5_cc_get_full_name): Add
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-01 09:36:41 +00:00
Love Hörnquist Åstrand
cc7855865c
(krb5_cc_cache_match): add function that iterates over all credential
...
caches for a user and returns a match.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16187 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 17:30:40 +00:00
Love Hörnquist Åstrand
e0a769c950
Add cache iteration funcations. Add internal allocation function for
...
the memory of a krb5_ccache, and use it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16106 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 10:07:26 +00:00
Love Hörnquist Åstrand
70aae422eb
(_krb5_expand_default_cc_name): just copy the string instead of losing const
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 20:19:57 +00:00
Love Hörnquist Åstrand
b251409222
(_krb5_expand_default_cc_name): replace strndup with inline copy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15393 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-15 11:18:16 +00:00
Love Hörnquist Åstrand
38ed451ae8
When returning a new error code, set error string.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15328 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-31 22:13:50 +00:00
Love Hörnquist Åstrand
85718a32f7
fix last commit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 13:13:17 +00:00
Love Hörnquist Åstrand
25fea843b6
(_krb5_expand_default_cc_name): change format for expantion variables
...
to %{variable} to not confuse them with shell ditto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15252 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 13:12:22 +00:00
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