Commit Graph

24593 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
5ee06ffbff Make one verify context per client, this way we can add our own trust
anchors for each client, so that self registed/special certificate are
allowed as trust anchors.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:02:44 +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
f0366476c5 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24983 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:01:58 +00:00
Love Hörnquist Åstrand
146f753987 make attach release the keyset
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24982 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:01:47 +00:00
Love Hörnquist Åstrand
6fe0364120 cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:01:36 +00:00
Love Hörnquist Åstrand
15d6e41dea add pkinit-cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24980 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:01:25 +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
1a488a85b7 doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24977 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:08:57 +00:00
Love Hörnquist Åstrand
597f9dbdfa make module private functions static
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:08:46 +00:00
Love Hörnquist Åstrand
4205308775 Always generate session key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:08:31 +00:00
Love Hörnquist Åstrand
f90c2b8194 don't use hdb_dbc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:08:21 +00:00
Love Hörnquist Åstrand
7cbcadcb21 document
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:08:10 +00:00
Love Hörnquist Åstrand
037366a584 document part of hdb.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:07:58 +00:00
Love Hörnquist Åstrand
8bb6609db6 unexport more internal symbols
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:07:42 +00:00
Love Hörnquist Åstrand
a5ee0ef10f unexport hdb_db_create
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:07:29 +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
f4b101544a buildfix on irix, from metze
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24967 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 15:01:23 +00:00
Love Hörnquist Åstrand
c3866bd220 add encode_hdb_keyset and length_hdb_keyset
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 14:57:54 +00:00
Love Hörnquist Åstrand
b56096178b add gss_wrap_iov_length and gss_release_iov_buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 14:57:42 +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
b347f67b02 use res_ for platforms w/o dns_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24963 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 14:55:46 +00:00
Love Hörnquist Åstrand
3221f51f1c document flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24962 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:57 +00:00
Love Hörnquist Åstrand
85c9cf9a76 add allow weak crypto flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24961 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:45 +00:00
Love Hörnquist Åstrand
f7a8d0bc32 add allow weak crypto flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:35 +00:00
Love Hörnquist Åstrand
7c796daa23 add allow weak crypto flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:24 +00:00
Love Hörnquist Åstrand
c4c71cc41a switch to sha256
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:13 +00:00
Love Hörnquist Åstrand
8c81cd83cc switch to sha256
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24957 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:02 +00:00
Love Hörnquist Åstrand
7ffd243eed switch to sha256
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:11:48 +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
f6de1a0ed0 make compile (missing implementation)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24951 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 23:29:56 +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
47023f94ff add test_hdbkeys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:38:25 +00:00
Love Hörnquist Åstrand
ad63429ea0 Code to print hdb_keysets.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:38:14 +00:00
Love Hörnquist Åstrand
ae945b27d7 Use calloc().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:38:04 +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
0d22dfad5f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24943 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:37:08 +00:00
Love Hörnquist Åstrand
f4f623e7d8 comment on what to add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:36:58 +00:00
Love Hörnquist Åstrand
033c14110f simplify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24941 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:36:47 +00:00
Love Hörnquist Åstrand
3aa4a14ef3 move generation of session key to preauth hook.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24940 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:36:36 +00:00
Love Hörnquist Åstrand
eb32e1f0ff add generation of session key here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24939 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:36:26 +00:00
Love Hörnquist Åstrand
26c1af7c93 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:36:14 +00:00