Commit Graph

6107 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
adaa1fb814 add SAM types and PAC_REQUEST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 00:33:20 +00:00
Love Hörnquist Åstrand
e01dbe09dd add more preauth types, add PA-PAC-REQUEST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 00:31:01 +00:00
Love Hörnquist Åstrand
8b8bcb8c9b add boolan support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 00:28:29 +00:00
Love Hörnquist Åstrand
9aaf686b2a (setpw_send_request): free ap_req_data on failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-02 14:39:22 +00:00
Love Hörnquist Åstrand
bb2f366b8f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:58:06 +00:00
Love Hörnquist Åstrand
cf4d77c610 (krb5_afslog_uid_home): be even more friendly to the user and fetch
context and id ourself


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:55:01 +00:00
Love Hörnquist Åstrand
2b7e870bf4 (init_cred_loop): handle KRB5KRB_ERR_RESPONSE_TOO_BIG and loop again,
this time requesting LARGE_MSG from send to kdc, and if this is the
second time bail out; try to free memory


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:05:27 +00:00
Love Hörnquist Åstrand
bce36e1e1e (krb5_sendto_kdc_flags): new function, and then implement the order
krb5_sendto_kdc* function with this function.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:39:53 +00:00
Love Hörnquist Åstrand
9f1541abe3 (krb5_krbhst_init_flags): new function, use it and adapt callers
(krbhst_get_default_proto): new function, returns udp, or in case
large_msg was requested for the krb5_krbhst_data, use tcp.
(*): if the flag KD_LARGE_MSG was set on the krb5_krbhst_data, avoid
using udp, use krbhst_get_default_proto


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:38:18 +00:00
Love Hörnquist Åstrand
fb67a350b5 flags for krb5_krbhst_init_flags (and krb5_send_to_kdc_flags)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:33:50 +00:00
Love Hörnquist Åstrand
c1cf2654de x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 10:49:11 +00:00
Love Hörnquist Åstrand
d4500b9840 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 10:47:58 +00:00
Love Hörnquist Åstrand
740e4a08a6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 12:13:38 +00:00
Love Hörnquist Åstrand
13ade7c50c (afslog_uid_int): just belive that realm hint the user passed us
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 12:13:28 +00:00
Love Hörnquist Åstrand
e894162147 Add support for AFS when using Kerberos 5,
From: Sergio.Gelato@astro.su.se


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 10:55:41 +00:00
Love Hörnquist Åstrand
29f526b115 (krb5_rd_req): if we have a keyblock in auth context, use that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 10:43:50 +00:00
Love Hörnquist Åstrand
ff3a43e965 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 10:08:43 +00:00
Love Hörnquist Åstrand
f5f69fb1ba - EC and RRC are big-endian, not little-endian
- The default is now to rotate regardless of GSS_C_DCE_STYLE. There
  are no longer any references to GSS_C_DCE_STYLE.
- rrc_rotate() avoids allocating memory on the heap if rrc <= 256
From: Luke Howard <lukeh@padl.com>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 10:08:24 +00:00
Love Hörnquist Åstrand
93afdf243c remove boolean for now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-22 23:54:23 +00:00
Love Hörnquist Åstrand
cf04eedc31 add TBoolean
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-22 23:51:59 +00:00
Love Hörnquist Åstrand
64f54caed8 decode IA5Stringa and UTF8String
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12907 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-22 22:37:17 +00:00
Love Hörnquist Åstrand
e36dcd9b45 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-22 22:00:31 +00:00
Love Hörnquist Åstrand
ee68a1f229 correct token ID for wrap tokens, were accidentally swapped with delete tokens
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-22 21:48:35 +00:00
Love Hörnquist Åstrand
7c533af43a rrc_rotate() was untested and broken, fix it
set and verify wrap Token->Filler
correct token ID for wrap tokens, were accidentally swapped with delete tokens
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-22 21:46:53 +00:00
Love Hörnquist Åstrand
73ebdd39c7 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 17:36:10 +00:00
Love Hörnquist Åstrand
7fa07e336e no ASN.1-ish header on per-message tokens
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12899 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 17:35:19 +00:00
Love Hörnquist Åstrand
d3c498eae5 use _krb5_get_init_creds_opt_copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 16:51:13 +00:00
Love Hörnquist Åstrand
9578214707 don't export krb5_get_init_creds_opt_copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 16:50:02 +00:00
Love Hörnquist Åstrand
f1e2f5f57a libhdb might depend on LIB_dlopen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 14:04:55 +00:00
Love Hörnquist Åstrand
b3ea5d4d2b add arcfour and aes as valid enctypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-20 00:10:33 +00:00
Love Hörnquist Åstrand
37e7b7d87f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 15:04:58 +00:00
Love Hörnquist Åstrand
5a87232218 remove depenency on gss_arcfour_mic_token and gss_arcfour_warp_token
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 15:04:35 +00:00
Love Hörnquist Åstrand
7ec533b6db improve readability of ->open ifdef, check if version >= 4.1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 02:38:02 +00:00
Love Hörnquist Åstrand
0540f13b86 prefix all struct HDB elements with hdb_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 00:25:35 +00:00
Love Hörnquist Åstrand
ef91ed3046 (krb5_get_init_creds_opt_copy): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:37:59 +00:00
Love Hörnquist Åstrand
286019f6cd (krb5_rd_req): allow caller to pass in a key in the auth_context, they
way processes that doesn't use the keytab can still pass in the key of
the service (matches behavior of MIT Kerberos).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:22:57 +00:00
Love Hörnquist Åstrand
332e117688 (init_init_creds_ctx): make void since it doesn't return an error,
update call sites
(krb5_get_init_creds_keytab): add out label again


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:20:50 +00:00
Love Hörnquist Åstrand
21554e0cbb collect all init_creds context into a structure so it can easier be
passed around, also, while here, change nonce for every request


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:40:44 +00:00
Love Hörnquist Åstrand
763a230714 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12846 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:06:49 +00:00
Love Hörnquist Åstrand
f6ab4150d5 remove #if 0'ed code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:06:18 +00:00
Love Hörnquist Åstrand
70f79440e5 (init_as_req): don't realloc data before the loop, add_padata() will
handle that itself


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:38:59 +00:00
Love Hörnquist Åstrand
a453cdbddc (add_addrs): don't increase addr->len until in contains interesting
data, use right iteration counter when clearing the addresses


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:21:00 +00:00
Love Hörnquist Åstrand
6e10f776c4 (log_realloc): increase len after realloc returns sucessfully
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 23:56:14 +00:00
Love Hörnquist Åstrand
b6c1d10f6f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 04:22:11 +00:00
Love Hörnquist Åstrand
63904d7af3 (gsskrb5_accept_sec_context): set sequence number when not requesting
mutual auth
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 04:20:33 +00:00
Love Hörnquist Åstrand
2c1317d353 (init_auth): set sequence number when not requesting mutual auth
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 04:15:36 +00:00
Love Hörnquist Åstrand
851acf88cd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-16 12:12:52 +00:00
Love Hörnquist Åstrand
6a38642fc0 (*): set minor_status
(gss_wrap): set conf_state to conf_req_flags on success
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-16 12:12:42 +00:00
Love Hörnquist Åstrand
e2a057b359 (gss_wrap_size_limit): use existing function
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12834 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-16 12:00:25 +00:00
Love Hörnquist Åstrand
45984d2d2c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 21:18:09 +00:00