Commit Graph

4386 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
a7e136a5d7 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:17 +00:00
Love Hörnquist Åstrand
6adab55480 rename S4U2SELF to FOR_USER
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:04:54 +00:00
Love Hörnquist Åstrand
3fd4a7262c use constants for memory types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:03:07 +00:00
Love Hörnquist Åstrand
a807cf05fa use constants for memory types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:02:57 +00:00
Love Hörnquist Åstrand
7f3fa7c41b Use krb5_cc_new_unique() instead of krb5_cc_gen_new()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:01:53 +00:00
Love Hörnquist Åstrand
90ca46c387 move krb5_cc_gen_new to deprecated, but don't mark it yet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:01:40 +00:00
Love Hörnquist Åstrand
90737f4260 move krb5_cc_gen_new to deprecated, but don't mark it yet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:01:27 +00:00
Love Hörnquist Åstrand
47de5125a8 free on failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25027 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:01:15 +00:00
Love Hörnquist Åstrand
71bab6db75 don't reset id pointer on free, upper layer does that for us.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:01:02 +00:00
Love Hörnquist Åstrand
53dcd1bdd3 test leak and make behavie sanely.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:00:51 +00:00
Love Hörnquist Åstrand
4b7c75eaf8 plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:00:40 +00:00
Love Hörnquist Åstrand
e9acb99d0e test krb5_cc_[sg]et_config, plug leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25023 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:00:28 +00:00
Love Hörnquist Åstrand
6f3721ba18 remove krb5_cc_next_cred_match, make work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:00:05 +00:00
Love Hörnquist Åstrand
48cb3aa538 plugs leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:59:54 +00:00
Love Hörnquist Åstrand
998d22462c plugs leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:59:43 +00:00
Love Hörnquist Åstrand
9dab5271de rename copy_match to copy_match_f
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:59:15 +00:00
Love Hörnquist Åstrand
72a8add81c rename copy_match to copy_match_f
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:58:59 +00:00
Love Hörnquist Åstrand
01a0f89114 change name of krb5_cc_copy_cache_match since it changed signature
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25011 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:57:48 +00:00
Love Hörnquist Åstrand
ba32ee19dc move krb5_cc_copy_creds here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25010 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:57:37 +00:00
Love Hörnquist Åstrand
f2cb188d59 move krb5_cc_copy_creds to mit_glue.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25009 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 03:57:24 +00:00
Love Hörnquist Åstrand
e5df9eb2d6 don't send more then 10 EDIs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 19:49:21 +00:00
Love Hörnquist Åstrand
d636b0fc31 unexport stuff that are no longer needed by kdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:02:33 +00:00
Love Hörnquist Åstrand
816a49b08a unexport stuff that are no longer needed by kdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24985 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:02:22 +00:00
Love Hörnquist Åstrand
18d83c99de ENOMEM, not ret
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24984 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:02:08 +00:00
Love Hörnquist Åstrand
4b73e8078f use SHA_DIGEST_LENGTH
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24979 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:01:13 +00:00
Love Hörnquist Åstrand
6ef65df975 make better conditional for v4_name_convert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24978 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 18:26:01 +00:00
Love Hörnquist Åstrand
03e7b2d3a5 add timeout to krb5_send_to_kdc_func, from metze
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24969 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 15:01:47 +00:00
Love Hörnquist Åstrand
e7b7dfaae6 add timeout to krb5_send_to_kdc_func, from metze
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24968 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 15:01:35 +00:00
Love Hörnquist Åstrand
9f90a1b3b6 pull back name_convert array since its used by krb5_524_conv_principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 14:56:01 +00:00
Love Hörnquist Åstrand
f0d769cccb set new filename
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24955 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 01:40:44 +00:00
Love Hörnquist Åstrand
27f682668f fix printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24954 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 01:40:34 +00:00
Love Hörnquist Åstrand
95ab53d314 unlock mutex instead of lock twice
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 01:40:19 +00:00
Love Hörnquist Åstrand
c4892701a6 make homedir work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24952 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 01:09:43 +00:00
Love Hörnquist Åstrand
9ba2b611ef add KRB5_KU_PA_PKINIT_KX
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24950 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:38:36 +00:00
Love Hörnquist Åstrand
f0616af047 Use blocksize instead of 16.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:37:53 +00:00
Love Hörnquist Åstrand
f1a7da6a55 Patch from Riverbed (Derrick Pallas) under the license of the files they are in:
memory leak in krb5_get_creds_opt->ticket

	The function krb5_get_creds_opt_set_ticket copies a Ticket
	into a krb5_get_cred_opt structure. However,
	krb5_get_creds_opt_free does not clean up this Ticket, even
	thought he manual pages indicate that it should.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:37:42 +00:00
Love Hörnquist Åstrand
5e4d827e61 Patch from Riverbed (Derrick Pallas) under the license of the files they are in:
Fix resource leak in heimdal/krb5/fcache/fcc_remove_cred
	In fcache, fcc_remove_cred generates a ccache called
	"newfile," which is not cleaned up if the final call
	(krb5_cc_move) fails.

Free of uninitialized value in fcache/fcc_move(...)
	If init_fcc fails to acquire a file handle, sp will be
	uninitialized. If this is the case, the call to
	krb5_storage_free will dereference this uninitialized value,
	which causes undefined behaviour.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:37:21 +00:00
Love Hörnquist Åstrand
ab2a36de97 Add KRB5_CTX_F_HOMEDIR_ACCESS.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:36:03 +00:00
Love Hörnquist Åstrand
3f00119ea6 Add krb5_set_home_dir_access.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:35:53 +00:00
Love Hörnquist Åstrand
240a220f87 Expand ~ to $HOME or pw_dir.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:35:42 +00:00
Love Hörnquist Åstrand
7fe8bc6c00 Parse ~/Library/Preferences/edu.mit.Kerberos too if running on an Apple platform.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:35:21 +00:00
Love Hörnquist Åstrand
dad321e230 add krb5_set_home_dir_access
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:35:10 +00:00
Love Hörnquist Åstrand
65353f9173 update documentation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:24:36 +00:00
Love Hörnquist Åstrand
4fbab16b41 If data == NULL, not store the config.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:00 +00:00
Love Hörnquist Åstrand
83595c6202 Add support for setting and getting kdc offset
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:21:50 +00:00
Love Hörnquist Åstrand
3bbe9c48e1 Adapt to time skew in KRB-ERROR.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:21:40 +00:00
Love Hörnquist Åstrand
6e8a595828 Try adapt to timeskrew when we are using pre-auth, and if there was a
time skew, try again.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:21:29 +00:00
Love Hörnquist Åstrand
d6fcbc45f9 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:28 +00:00
Love Hörnquist Åstrand
5cdbc62e05 include 524 if not smaller
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24899 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:19:57 +00:00
Love Hörnquist Åstrand
7beaa0b4f7 disable 425 functions and include 524 if not smaller
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:19:47 +00:00