Commit Graph

96 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
854ef9a202 switch to krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:25:00 +00:00
Love Hörnquist Åstrand
034744160a Pick up [libdefaults]default_cc_type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-28 18:01:46 +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
6aa94aa902 Flag if default_cc_name was set by the user, ignore envirnoment updates then.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:54:37 +00:00
Love Hörnquist Åstrand
58a7d59b47 Put back code that was needed, move gen_new into new_unique.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 21:20:02 +00:00
Love Hörnquist Åstrand
8ff9a93093 Use krb5_cc_ops->default_name to get the default name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 17:17:41 +00:00
Love Hörnquist Åstrand
5d119f3729 (krb5_cc_move): new function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 12:46:21 +00:00
Love Hörnquist Åstrand
5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
c812d60f80 doxygen configuration
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-10 10:37:30 +00:00
Love Hörnquist Åstrand
2f2da40a0f (krb5_cc_retrieve_cred): check return value from krb5_cc_start_seq_get. From Zeqing (Fred) Xia
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21979 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-18 20:12:35 +00:00
Love Hörnquist Åstrand
13518ccd7d Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21498 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-11 09:41:43 +00:00
Love Hörnquist Åstrand
39184f36f3 (enviroment_changed): return non-zero if enviroment that will
determine default krb5cc name has changed.
(krb5_cc_default_name): also check if cached value is uptodate.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 12:07:33 +00:00
Love Hörnquist Åstrand
d0b82b20dd (krb5_cc_retrieve_cred): document what to free 'cred' with.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20503 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-21 22:03:56 +00:00
Love Hörnquist Åstrand
1eaf2446ed Make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 17:35:33 +00:00
Love Hörnquist Åstrand
44c73244c3 By using full function calling conversion (*func) we avoid problem
when close(fd) is overridden using a macro.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 17:32:10 +00:00
Love Hörnquist Åstrand
2709915a99 (krb5_cc_new_unique): use KRB5_DEFAULT_CCNAME as the default prefix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 17:08:40 +00:00
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