Commit Graph

781 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
75ece1ac48 Fix "if (x) lock(y)" bug. From Harald Barth.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-01 17:55:35 +00:00
Love Hörnquist Åstrand
839c8fba02 DCE-style token do include padding, add it back.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-25 22:23:27 +00:00
Love Hörnquist Åstrand
26ae75721a Add wrap support, interrop with itself but not w2k3s-sp1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18172 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-25 21:42:28 +00:00
Love Hörnquist Åstrand
0ecd7e58ad move the arcfour specific stuff to the arcfour header.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-25 20:45:00 +00:00
Love Hörnquist Åstrand
24c75bf8eb Support DCE-style unwrap, tested with w2k3server-sp1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18170 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-25 20:44:03 +00:00
Love Hörnquist Åstrand
ac365a5552 Free service_keyblock and fwd_data, indent.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-22 14:57:22 +00:00
Love Hörnquist Åstrand
7d573742a1 Merge of the acceptor part from the samba patch by Stefan Metzmacher
and Andrew Bartlet.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-22 14:52:11 +00:00
Love Hörnquist Åstrand
67655a5dd5 Add GSS_C_DCE_STYLE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-22 11:22:14 +00:00
Love Hörnquist Åstrand
226ba0b6cd merge most of the initiator part from the samba patch by Stefan Metzmacher and Andrew Bartlet (still missing DCE/RPC support)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-22 10:41:31 +00:00
Love Hörnquist Åstrand
6fc08c2f0a Remove dup prototype of _gsskrb5_init()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17852 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 03:53:31 +00:00
Love Hörnquist Åstrand
492e9f9da2 add GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17849 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:30:07 +00:00
Love Hörnquist Åstrand
a2ea91c906 catch GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17848 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:29:13 +00:00
Love Hörnquist Åstrand
24397fd675 reimplement gsskrb5_register_acceptor_identity
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:28:37 +00:00
Love Hörnquist Åstrand
610f467aca Redo the wrap length calculations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-19 14:17:05 +00:00
Love Hörnquist Åstrand
430246f106 Expose the wrap length calculations in cfx for external testing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-19 14:16:33 +00:00
Love Hörnquist Åstrand
8938caad35 test max_wrap_size in cfx.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17836 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-19 14:15:07 +00:00
Love Hörnquist Åstrand
2cdda8a767 (_gsskrb5_accept_sec_context): use GSS_C_NO_NAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17826 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-10 18:28:22 +00:00
Love Hörnquist Åstrand
71d3172ea3 Don't free return values on success.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-07 01:48:30 +00:00
Love Hörnquist Åstrand
48e418072e (_gsskrb5_inquire_cred): When cred provided is the default cred,
acquire the acceptor cred and initator cred in two diffrent steps and
then query them for the information, this way, the code wont fail if
there are no keytab, but there is a credential cache.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-06 22:37:19 +00:00
Love Hörnquist Åstrand
b1537f3cca Make work on compilers that are somewhat more picky then gcc4 (like gcc2.95)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:57:33 +00:00
Love Hörnquist Åstrand
54afe1180f (do_delegation): use KDCOptions2int to convert fwd_flags to an
integer, since otherwise int2KDCOptions in krb5_get_forwarded_creds wont do the right thing.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:38:40 +00:00
Love Hörnquist Åstrand
850616a934 (_gsskrb5_set_sec_context_option): init global kerberos context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:34:09 +00:00
Love Hörnquist Åstrand
997e17d6a4 (_gsskrb5_set_cred_option): init global kerberos context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17767 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:33:48 +00:00
Love Hörnquist Åstrand
03567db502 make gss_name_t an opaque type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17736 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 07:27:26 +00:00
Love Hörnquist Åstrand
318994275e Add gss_set_cred_option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 23:46:41 +00:00
Love Hörnquist Åstrand
dc781671f0 Reimplement GSS_KRB5_COPY_CCACHE_X to instead pass a fullname to the
credential, then resolve and copy out the content, and then close the cred.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 17:33:29 +00:00
Love Hörnquist Åstrand
6f241708fb make "work", GSS_KRB5_COPY_CCACHE_X interface needs to be re-done,
currently its utterly broken.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 16:21:28 +00:00
Love Hörnquist Åstrand
e6b82dd964 Add _gsskrb5_set_{sec_context,cred}_option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 15:16:50 +00:00
Love Hörnquist Åstrand
256c5d4b1a ignore gsskrb5-private.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 09:30:27 +00:00
Love Hörnquist Åstrand
ee09f98c15 Rename local include file, remove global files.
Stop exposing global gssapi symbols.
Rename gss_context_id_t and gss_cred_id_t to local names.
Remove SPNEGO code, its now in its own gssapi module.
Add mechglue inquire functions.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 08:54:04 +00:00
Love Hörnquist Åstrand
9a5f9bfc55 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17684 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 04:20:16 +00:00
Love Hörnquist Åstrand
b8fffa2498 Add oid_to_str.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 04:18:38 +00:00
Love Hörnquist Åstrand
8da931953b add oid_to_str and test_oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 04:17:11 +00:00
Love Hörnquist Åstrand
538bdde6d9 Add gss_oid_to_str
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 04:16:45 +00:00
Love Hörnquist Åstrand
d111e22218 Add test for gss_oid_to_str()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 04:16:09 +00:00
Love Hörnquist Åstrand
6b31720b5c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 15:37:39 +00:00
Love Hörnquist Åstrand
0e90681917 Less pointer signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 15:35:54 +00:00
Love Hörnquist Åstrand
a2dc8c858e Use const void * to instead of unsigned char * to avoid pointer
signedness warnings.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17563 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 15:30:37 +00:00
Love Hörnquist Åstrand
4e6c7cbe57 Less pointer signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17562 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 15:19:48 +00:00
Love Hörnquist Åstrand
622495b00b Less pointer signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 09:32:02 +00:00
Love Hörnquist Åstrand
c4d0fcfc9d Less pointer signedness warnings (partly by using the new asn.1 CHOICE decoder)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17560 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 09:27:45 +00:00
Love Hörnquist Åstrand
40cb3723f1 Less pointer signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 09:15:42 +00:00
Love Hörnquist Åstrand
12aa00c33f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17524 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-09 08:08:17 +00:00
Love Hörnquist Åstrand
dd796d90c2 (gsskrb5_is_cfx): always set is_cfx. From Andrew Abartlet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17523 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-09 07:16:39 +00:00
Love Hörnquist Åstrand
27d503a511 (mic_des3): make sure message_buffer doesn't point to free()ed memory
on failure. Pointed out by IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-08 09:55:37 +00:00
Love Hörnquist Åstrand
5118c90498 Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 11:11:43 +00:00
Love Hörnquist Åstrand
cb704efeeb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand
197bb022d1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17437 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 11:59:59 +00:00
Love Hörnquist Åstrand
f832671530 Less pointer signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 11:59:19 +00:00
Love Hörnquist Åstrand
3dd8e3181b Avoid pointer signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 11:56:50 +00:00