Commit Graph

509 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
33efaf1f26 switch from the des_ to the DES_ api
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:29:36 +00:00
Love Hörnquist Åstrand
992f32ca35 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 08:42:04 +00:00
Love Hörnquist Åstrand
6cdb4003eb EC is not included in the checksum since the length might change
depending on the data.
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12746 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 08:36:57 +00:00
Love Hörnquist Åstrand
61e14619de use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Love Hörnquist Åstrand
f287772b22 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12736 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:23:34 +00:00
Love Hörnquist Åstrand
036d477a1c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12719 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-01 15:11:28 +00:00
Love Hörnquist Åstrand
41ee26c847 rename gss_krb5_extract_authz_data_from_sec_context to
gsskrb5_extract_authz_data_from_sec_context


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-01 15:11:09 +00:00
Love Hörnquist Åstrand
199d7998ff x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12717 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 21:58:37 +00:00
Love Hörnquist Åstrand
90b52bb83b (gss_krb5_extract_authz_data_from_sec_context):
check that we have a ticket before we start to use it


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 21:56:26 +00:00
Love Hörnquist Åstrand
1f5d66620a document gss_krb5_extract_authz_data_from_sec_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12715 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 19:52:44 +00:00
Love Hörnquist Åstrand
4ddc6a08ed (gss_krb5_extract_authz_data_from_sec_context):
return the kerberos authorizationdata, from idea of Luke Howard


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12714 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 19:52:16 +00:00
Love Hörnquist Åstrand
6a722501fe (gss_verify_mic_internal): switch type and key argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 19:50:34 +00:00
Love Hörnquist Åstrand
bde1acd681 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12707 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-30 13:52:44 +00:00
Love Hörnquist Åstrand
a67627e780 draft-ietf-krb-wg-gssapi-cfx-01.txt implemetation
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12706 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-30 13:51:41 +00:00
Love Hörnquist Åstrand
602247aaac x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12696 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 11:08:35 +00:00
Love Hörnquist Åstrand
da8892828c (arcfour_mic_cksum): use free_Checksum to free the checksum
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12695 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 11:08:26 +00:00
Love Hörnquist Åstrand
adc6d86b7d swap two last arguments to verify_mic for consistency with des3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12694 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 11:00:23 +00:00
Love Hörnquist Åstrand
ea87ec5a69 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12693 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:54:50 +00:00
Love Hörnquist Åstrand
9673c61169 prefix cfx symbols with _gssapi_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12692 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:54:06 +00:00
Love Hörnquist Åstrand
4f2548810a release the right buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12691 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:48:32 +00:00
Love Hörnquist Åstrand
d432d068e5 rename token structure in consistency with rest of GSS-API
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12690 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:41:36 +00:00
Love Hörnquist Åstrand
bdf7544c1b (unwrap_des3): use _gssapi_verify_pad
(unwrap_des): use _gssapi_verify_pad


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12689 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:24:45 +00:00
Love Hörnquist Åstrand
504acf338f (_gssapi_wrap_arcfour): set the correct padding
(_gssapi_unwrap_arcfour): verify and strip padding


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:23:28 +00:00
Love Hörnquist Åstrand
ff1011309d added _gssapi_verify_pad
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:22:25 +00:00
Love Hörnquist Åstrand
9ef52e1041 (_gssapi_verify_pad): verify padding of a gss wrapped message and
return its length


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12686 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 10:22:03 +00:00
Love Hörnquist Åstrand
53ad072bc7 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12684 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 08:07:08 +00:00
Love Hörnquist Åstrand
8374158e8c support KEYTYPE_ARCFOUR_56 keys, from Luke Howard <lukeh@PADL.COM>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 07:57:29 +00:00
Love Hörnquist Åstrand
8a4d53ac23 use right seal alg, inherit keytype from parent key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 07:55:54 +00:00
Love Hörnquist Åstrand
9f9fde52a7 include the confounder in the checksum
use the right key usage number for warped/unwraped tokens


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 07:17:33 +00:00
Love Hörnquist Åstrand
0ec5289d77 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 02:24:41 +00:00
Love Hörnquist Åstrand
466c633f62 add gss_krb5_nt_general_name as an mit compat glue
(same as GSS_KRB5_NT_PRINCIPAL_NAME)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12678 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 02:23:52 +00:00
Love Hörnquist Åstrand
ba7a3aa53e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12675 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 00:07:37 +00:00
Love Hörnquist Åstrand
7911b7e907 hook in arcfour unwrap
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12674 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 00:07:25 +00:00
Love Hörnquist Åstrand
221fd47408 hook in arcfour wrap
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12673 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 00:07:07 +00:00