Commit Graph

601 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
3882d8ca5f Don't require timestamp to be set on delegated token, its already
protected by the outer token (and windows doesn't alway send it)
Pointed out by Zi-Bin Yang <zbyang@decru.com> on heimdal-discuss


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-22 22:42:16 +00:00
Love Hörnquist Åstrand
8f3b927b5f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-14 03:13:33 +00:00
Love Hörnquist Åstrand
00c0fe1ebb fix {} error, pointed out by Liqiang Zhu
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-14 03:11:23 +00:00
Love Hörnquist Åstrand
155a667009 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-10 15:43:20 +00:00
Love Hörnquist Åstrand
33b781c6f6 Sequence number should be stored in bigendian order
From: Luke Howard <lukeh@padl.com>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-10 15:40:36 +00:00
Love Hörnquist Åstrand
bc935dd347 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-09 01:22:46 +00:00
Love Hörnquist Åstrand
711b17e252 (gss_delete_sec_context): don't free ticket, krb5_free_ticket does that now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-09 01:17:13 +00:00
Love Hörnquist Åstrand
113cf794d6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-06 01:34:19 +00:00
Love Hörnquist Åstrand
bb7c2ec23c checksum the header last in MIC token, update to -03
From: Luke Howard <lukeh@padl.com>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-06 01:27:50 +00:00
Love Hörnquist Åstrand
e31cf630fd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12983 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-07 04:09:43 +00:00
Love Hörnquist Åstrand
535b4f1e94 If its a MEMORY cc, make a copy. We need to do this since now
gss_release_cred will destroy the cred. This should be really be
solved a better way.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12982 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-07 04:08:57 +00:00
Love Hörnquist Åstrand
9b8678e016 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12979 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-07 01:02:14 +00:00
Love Hörnquist Åstrand
ced74c3564 (gss_release_cred): if its a mcc, destroy it rather the just release it
Found by: "Zi-Bin Yang" <zbyang@decru.com>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12977 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-07 00:51:46 +00:00
Love Hörnquist Åstrand
7c51fd6e95 (acquire_initiator_cred): use kret instead of ret where appropriate
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-07 00:37:04 +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
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
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
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
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
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
Love Hörnquist Åstrand
07970b6175 (gss_indicate_mechs): in case of error, free mech_set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 21:15:42 +00:00
Love Hörnquist Åstrand
2a072a6aeb (gss_indicate_mechs): add SPNEGO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 21:12:52 +00:00
Love Hörnquist Åstrand
ceb75e1f48 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 20:50:15 +00:00
Love Hörnquist Åstrand
b1576251e1 (spnego_initial): add #if 0 out version of the CHOICE branch encoding,
also where here, free no longer used memory


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 20:49:11 +00:00
Love Hörnquist Åstrand
bb22f358b1 (spnego_initial): catch errors and return them
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 23:44:25 +00:00
Love Hörnquist Åstrand
36c72f770b update .Dd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:57:48 +00:00
Love Hörnquist Åstrand
dd9620c56f now support for GSS_SPNEGO_MECHANISM
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:57:08 +00:00
Love Hörnquist Åstrand
1448ad988f SPNEGO doesn't include gss wrapping on SubsequentContextToken like the
Kerberos 5 mech does.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:54:09 +00:00
Love Hörnquist Åstrand
c65c7ace38 (spnego_reply): SPNEGO doesn't include gss wrapping on
SubsequentContextToken like the Kerberos 5 mech does. Lets check for
it anyway.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12801 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:40:12 +00:00
Love Hörnquist Åstrand
250a05b38c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 03:44:26 +00:00
Love Hörnquist Åstrand
aa2eabd394 Add support for SPNEGO on the initator side. Implementation initially
from Assar Westerlund, passes though quite a lot of hands before I
commited it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12794 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 03:28:54 +00:00
Love Hörnquist Åstrand
790b9ab1bd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 02:33:49 +00:00
Love Hörnquist Åstrand
c94bb7e568 Add support for SPNEGO on the initator side. Tested with ldap server
on a Windows 2000 DC. Implementation initially from Assar Westerlund,
passes though quite a lot of hands before I commited it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 02:31:47 +00:00
Love Hörnquist Åstrand
db4289a379 export GSS_SPNEGO_MECHANISM
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 02:11:21 +00:00
Love Hörnquist Åstrand
c3326093b4 include spnego_as.h
add prototype for gssapi_krb5_get_mech


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 02:10:00 +00:00
Love Hörnquist Åstrand
a3139e092e (gssapi_krb5_get_mech): make non static
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 02:09:03 +00:00