Commit Graph

11090 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand d3938b5abb (krb5_ticket_get_authorization_data_type): unbreak.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-06 17:57:18 +00:00
Love Hörnquist Åstrand 7dc5946f3c Fix extraction of authz data from the AuthorizationData sequence:
Where we had
 IF-RELEVENT::
	WIN2K-PAC
 IF-RELEVENT::
	SIGNED-PATH

The recursion into find_type_in_ad() for the second element would set
ret = ENOENT, and therefore the tail would set *found = FALSE, despite
the data already being found.

From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-06 17:53:58 +00:00
Love Hörnquist Åstrand 7ca637df72 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-06 17:16:10 +00:00
Love Hörnquist Åstrand 16679f8174 A few fixes to have Heimdal pass the make check under socket_wrapper.
The first is a missing 'break' before the (heimdal specific) IPv6 support.

The second works around the fact that sendto() *may* object to a
destination being specified.  It appears to be that on Linux, this
objects (with EISCONN) for unix stream sockets, but not for TCP
sockets.

The alternate fix would be to have the KDC use 'send()' in this case.

Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-06 17:12:34 +00:00
Love Hörnquist Åstrand fc9d24c7de x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:50:49 +00:00
Love Hörnquist Åstrand acaa0b8655 Test gsskrb5_extract_service_keyblock, needed in PAC valication.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:46:21 +00:00
Love Hörnquist Åstrand 15ffd5b195 Add keyblock extraction functions, set more errorstrings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:35:32 +00:00
Love Hörnquist Åstrand d3eeb37f3d Add gsskrb5_extract_authz_data_from_sec_context and keyblock
extraction functions.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18915 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:23:01 +00:00
Love Hörnquist Åstrand 51c7ede9d6 Add extraction of keyblock function, from Andrew Bartlett.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:06:09 +00:00
Love Hörnquist Åstrand e4947d8944 Add GSS_KRB5_GET_SERVICE_KEYBLOCK_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:03:15 +00:00
Love Hörnquist Åstrand 62430a07d1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 23:55:26 +00:00
Love Hörnquist Åstrand 343b2cb1c2 (hx509_query_match_cmp_func): return 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 23:43:24 +00:00
Love Hörnquist Åstrand 159fc828ab add context variable to cmp function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 23:31:41 +00:00
Love Hörnquist Åstrand c226612caa (hx509_query_match_cmp_func): allow setting the match function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 23:27:49 +00:00
Love Hörnquist Åstrand ccbbd474e1 Rename various routines and constants from canonize to canonicalize.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 03:34:57 +00:00
Love Hörnquist Åstrand b15281a864 Add krb5_[gs]et_time_wrap
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 03:27:47 +00:00
Love Hörnquist Åstrand c9ccbb40f2 Rename various routines and constants from canonize to canonicalize.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 03:20:57 +00:00
Love Hörnquist Åstrand 0cd59b2fa5 Rename various routines and constants from canonize to canonicalize.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18903 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 03:12:46 +00:00
Love Hörnquist Åstrand 8ddaadec0e Rename various routines and constants from canonize to canonicalize.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 02:42:17 +00:00
Love Hörnquist Åstrand 416000fcde x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-25 04:20:52 +00:00
Love Hörnquist Åstrand 8051eadfb4 (gsskrb5_accept_delegated_token): need to free ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-25 04:19:45 +00:00
Love Hörnquist Åstrand 1ad6535a1d (loop): free target_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-25 03:32:08 +00:00
Love Hörnquist Åstrand ef4ef516e5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-25 00:54:09 +00:00
Love Hörnquist Åstrand 6c33791de5 SLIST_INIT the ->gc_mc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18892 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-25 00:45:12 +00:00
Love Hörnquist Åstrand b619dd374c Avoid leaking memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 23:03:19 +00:00
Love Hörnquist Åstrand b9fec80080 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 21:55:32 +00:00
Love Hörnquist Åstrand ab649d3154 (gss_release_buffer_set): don't leak the ->elements memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 21:53:02 +00:00
Love Hörnquist Åstrand 6f3ca67165 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 21:17:10 +00:00
Love Hörnquist Åstrand 204ee001a8 Free the security contexts when done.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 21:15:24 +00:00
Love Hörnquist Åstrand 14f11cf880 (_gssapi_verify_mic_cfx): always free crypto context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 21:13:22 +00:00
Love Hörnquist Åstrand 46e536ef18 (import_cred): free sp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18878 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 20:14:13 +00:00
Love Hörnquist Åstrand 1186389444 set more error strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 19:58:16 +00:00
Love Hörnquist Åstrand 77e4ca555d Return less EINVAL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 19:57:16 +00:00
Love Hörnquist Åstrand b80776d43c add more pkcs11 errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 19:56:02 +00:00
Love Hörnquist Åstrand 9f02e50607 (export_lucid_sec_context_v1): remove locking around
_gsskrb5i_get_token_key since it will handle that itself.
From Kevin Coffman.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18873 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 15:55:28 +00:00
Love Hörnquist Åstrand 9a6b638fb0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18872 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:39:27 +00:00
Love Hörnquist Åstrand b5eb125380 more error-codes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:38:08 +00:00
Love Hörnquist Åstrand 1f10971511 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18870 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:37:11 +00:00
Love Hörnquist Åstrand de70ab808f Return less EINVAL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18869 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:36:20 +00:00
Love Hörnquist Åstrand 6bc5a77a26 sprinkel more hx509_set_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:26:58 +00:00
Love Hörnquist Åstrand 11bf92c480 add EXTRA_DATA
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18867 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:11:20 +00:00
Love Hörnquist Åstrand 3d552d8a43 Return less EINVAL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18866 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:08:32 +00:00
Love Hörnquist Åstrand a6726ae8e3 Pass in context to _hx509_parse_private_key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:00:29 +00:00
Love Hörnquist Åstrand a6ad00f6e0 return less EINVAL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:57:59 +00:00
Love Hörnquist Åstrand ff31485ed0 Sprinkle more hx509_context so we can return propper errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:48:18 +00:00
Love Hörnquist Åstrand 43c1cc11e7 add HX509_PARSING_KEY_FAILED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:45:03 +00:00
Love Hörnquist Åstrand f58f609484 Sprinkle more hx509_context so we can return propper errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:34:21 +00:00
Love Hörnquist Åstrand 7f316a5b1e Sprinkle more hx509_context so we can return propper errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:21:17 +00:00
Love Hörnquist Åstrand e04a318438 add context variable to _hx509_collector_private_key_add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18859 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:13:34 +00:00
Love Hörnquist Åstrand e4ce12b8d1 unbreak.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18858 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:09:49 +00:00