Commit Graph

643 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
50d2a24176 build SPNEGO file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 02:05:51 +00:00
Love Hörnquist Åstrand
73e27ffc4c SPENGO and IAKERB oids
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12785 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:34:19 +00:00
Love Hörnquist Åstrand
5d190295aa add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
135ef50acb SPENGO ASN1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 14:39:34 +00:00
Love Hörnquist Åstrand
addecb38ac x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-05 09:50:17 +00:00
Love Hörnquist Åstrand
653d7b010b RRC also need to be zero before wraping them
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-05 09:49:22 +00:00
Love Hörnquist Åstrand
5097c486af (gssapi_krb5_encap_length): don't return void
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 18:08:55 +00:00
Love Hörnquist Åstrand
ce72892e20 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:11:20 +00:00