Commit Graph

13492 Commits

Author SHA1 Message Date
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
f030017f6f add store-cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:34:58 +00:00
Love Hörnquist Åstrand
ac45625cb1 basic implementation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:34:42 +00:00
Love Hörnquist Åstrand
ad9ad11485 add store-cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:25:07 +00:00
Love Hörnquist Åstrand
61b8032de0 add store_cred.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:24:57 +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
37e726c136 wrap more EC stuff in HAVE_OPENSSL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:24:26 +00:00
Love Hörnquist Åstrand
e2bec18571 checker warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:23:44 +00:00
Love Hörnquist Åstrand
8c393278a3 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:23:32 +00:00
Love Hörnquist Åstrand
6d0f8eab1d make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:23:20 +00:00
Love Hörnquist Åstrand
6bff91ac85 qop_state is not used any more, remove
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:23:10 +00:00
Love Hörnquist Åstrand
2bd838c5ac ops is not used any more, remove
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:23:00 +00:00
Love Hörnquist Åstrand
38c844cbaa return instad of break out to return
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:50 +00:00
Love Hörnquist Åstrand
bc8666ab5a nkeys not used any more, don't increment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24915 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:40 +00:00
Love Hörnquist Åstrand
cf5cc3cb81 argc/argv not used, don't increment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:30 +00:00
Love Hörnquist Åstrand
1ba2a45b7b ep not use, don't increment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:20 +00:00
Love Hörnquist Åstrand
736d3d7e03 argc not use, don't increment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:10 +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
43ce9bdc01 first draft of gss_store_cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:21:08 +00:00
Love Hörnquist Åstrand
52878d9adb add store_cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:57 +00:00
Love Hörnquist Åstrand
d6a0a48ce7 add hdb_keyset
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:47 +00:00
Love Hörnquist Åstrand
95f39b1cc0 add hdb_keyset and opaque
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24903 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:37 +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
164c99a4b4 Do locking around file descriptor, this allows caching of the file
descriptor in the module.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:18 +00:00
Love Hörnquist Åstrand
59e499f32f Prefer /dev/random on MacOS since it's always there and have good performance.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:07 +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
Love Hörnquist Åstrand
99196c113e dns: switch to rk types, prefix types with rk_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:19:36 +00:00
Love Hörnquist Åstrand
b7db794723 provide glue for classes too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:19:26 +00:00
Love Hörnquist Åstrand
9697d2a91c stop using Bind4 types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:19:15 +00:00
Love Hörnquist Åstrand
e1a4017891 remove bind4 types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:19:05 +00:00
Love Hörnquist Åstrand
db149370e1 dns: switch to rk types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:55 +00:00
Love Hörnquist Åstrand
ac0502a0fe dns: switch to rk types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24892 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:45 +00:00
Love Hörnquist Åstrand
58b16c9bf1 dns: switch to rk types, prefix types with rk_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:35 +00:00
Love Hörnquist Åstrand
5cb8acdf6d dns: switch to rk types, prefix types with rk_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:25 +00:00
Love Hörnquist Åstrand
fb2acb56f3 prefix dns_ symbols
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:15 +00:00
Love Hörnquist Åstrand
2516af31b6 less unprefixed structs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:05 +00:00
Love Hörnquist Åstrand
38fb5e3b12 prefix dns_ symbols
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24887 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:17:55 +00:00
Love Hörnquist Åstrand
b234c0eeba C++ protection
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:17:45 +00:00
Love Hörnquist Åstrand
7220ad7930 remove compat glue, fix prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:17:35 +00:00
Love Hörnquist Åstrand
b8fb6b35ae dns_ symbols are no more.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:17:12 +00:00
Love Hörnquist Åstrand
bd5229d126 prefix dns_ symbols
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:17:02 +00:00