Commit Graph

6107 Commits

Author SHA1 Message Date
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
8f56b409d0 fix another int vs krb5_error_code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:12:08 +00:00
Love Hörnquist Åstrand
c82cfd62b2 fix prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12825 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:04:43 +00:00
Love Hörnquist Åstrand
497233da66 include <limits.h> for ULONG_MAX
noted by Wissler Magnus <M.Wissler@abalon.se> on heimdal-discuss


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 21:54:58 +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
d28e2d0ebc add support for printing Enumerated
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 16:08:56 +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
96273416f9 (krb5_get_init_creds_opt_alloc): add context argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:25:02 +00:00
Love Hörnquist Åstrand
8cec741ab3 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:23:49 +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
672fd697ee (add_file): make len argument an pointer to an integer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 18:15:45 +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
Johan Danielsson
6a621def0e document appdefaults/{forward,encrypt}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 14:30:04 +00:00
Love Hörnquist Åstrand
9c604bf8c2 add SAM types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12767 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 05:37:17 +00:00
Love Hörnquist Åstrand
646ee1b761 break out the encrypt timestamp preauth to its function
break out the pa_data_to_key_plain to its own function
make more variables const


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 05:30:48 +00:00
Love Hörnquist Åstrand
e44d866589 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 01:14:12 +00:00
Love Hörnquist Åstrand
3cd7e6c162 Add key usage for encryption of the SAM-NONCE-OR-SAD field.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:53:25 +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
eac04f34dc assume session key is a char array of length 8
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:11:07 +00:00
Love Hörnquist Åstrand
54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +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
efb37e15c6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:27:55 +00:00
Love Hörnquist Åstrand
70a309f60b (MD4_Final): make the function threadsafe by removing static on the
local variable zeros


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:27:42 +00:00
Love Hörnquist Åstrand
c9681ae897 (MD5_Final): make the function threadsafe by removing static on the
local variable zeros


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:27:16 +00:00
Love Hörnquist Åstrand
49e0243cc5 switch to the DES_ api, dont provide any compat glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:26:03 +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
6caf92684d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12742 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:47:00 +00:00
Love Hörnquist Åstrand
06bf61ec4a add and enable check program default_keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12741 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:46:50 +00:00
Love Hörnquist Åstrand
c92c24750f test program for _kadm5_generate_key_set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12740 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:46:17 +00:00
Love Hörnquist Åstrand
eb6fcf70a4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:43:03 +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