Love Hörnquist Åstrand
b38b62d51a
(gsskrb5_get_subkey): return the per message token subkey
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 14:41:35 +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
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
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
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
56fa3ffc37
Use old implementation of gss_add_oid_set_member, it leaks less memory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 09:36:13 +00:00
Love Hörnquist Åstrand
cb3930a054
(gss_release_name): free input_name it-self.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 07:59:06 +00:00
Love Hörnquist Åstrand
da3d6a24ab
Add gsskrb5_extract_authtime_from_sec_context.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18723 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 22:05:02 +00:00
Love Hörnquist Åstrand
75f1c15254
Add gsskrb5_set_send_to_kdc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 18:55:37 +00:00
Love Hörnquist Åstrand
851d77fd56
Make it into a heim_any_set, its doesn't except a tag.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-18 21:08:19 +00:00
Love Hörnquist Åstrand
ab11b51e36
GSSAPIContextToken is IMPLICIT SEQUENCE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18562 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-18 20:53:09 +00:00
Love Hörnquist Åstrand
f8da152434
Add gsskrb5_set_dns_canonlize.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 09:43:27 +00:00
Love Hörnquist Åstrand
6ed70e5571
add bits to make lucid context work
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 03:01:51 +00:00
Love Hörnquist Åstrand
00c5c484a9
Prefix der primitives with der_.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 10:12:16 +00:00
Love Hörnquist Åstrand
c5ede77a94
New der_put_heim_integer signature.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 04:57:09 +00:00
Love Hörnquist Åstrand
4860ab5db8
Add lucid interface.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-12 08:50:42 +00:00
Love Hörnquist Åstrand
3e5e6f9926
define RTLD_LOCAL to 0 if not defined.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-09 11:13:30 +00:00
Love Hörnquist Åstrand
240ea3df28
Include <roken.h>.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18318 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-07 18:25:27 +00:00
Love Hörnquist Åstrand
1e83468c03
Cast argument to ctype(3) functions to (unsigned char).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-06 07:30:54 +00:00
Love Hörnquist Åstrand
4fa0198146
remove <sys/queue.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18246 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-05 18:36:07 +00:00
Love Hörnquist Åstrand
6accd4715c
(gss_accept_sec_context): if the token doesn't start with [APPLICATION
...
0] SEQUENCE, lets assume its a DCE-style kerberos 5 connection. XXX
this needs to be made better in cause we get another GSS-API protocol
violating protocol. It should be possible to detach the Kerberos
DCE-style since it starts with a AP-REQ PDU, but that have to wait for
now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-25 19:24:48 +00:00
Love Hörnquist Åstrand
e177561ec2
implement gsskrb5_register_acceptor_identity
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17846 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:18:08 +00:00
Love Hörnquist Åstrand
bccfb8cbf4
call _gss_load_mech
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:04:00 +00:00
Love Hörnquist Åstrand
00e06e0965
(gss_inquire_cred): call _gss_load_mech
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:03:18 +00:00
Love Hörnquist Åstrand
c8823f15de
Make _gss_load_mech() atomic and run only once, this have the side
...
effect that _gss_mechs and _gss_mech_oids is only initialized once, so
if just the users of these two global variables calls _gss_load_mech()
first, it will act as a barrier and make sure the variables are never
changed and we don't need to lock them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:01:56 +00:00
Love Hörnquist Åstrand
dceb8d0ad3
no need to mark functions extern.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 01:48:25 +00:00
Love Hörnquist Åstrand
9b06a35e57
no need to mark _gss_find_mn extern.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 01:47:51 +00:00
Love Hörnquist Åstrand
c54d474c55
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 01:41:22 +00:00
Love Hörnquist Åstrand
401ac054a8
Handle more error codes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-19 11:02:33 +00:00
Love Hörnquist Åstrand
1656b1d9b2
switch order of headerfiles
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-07 22:21:56 +00:00
Love Hörnquist Åstrand
49f58ef90d
Include <krb5-types.h> and "mechqueue.h"
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-07 15:37:44 +00:00
Love Hörnquist Åstrand
6b8a8dcea1
Add SLIST macros
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-07 15:36:10 +00:00
Love Hörnquist Åstrand
5a56af8c79
move the check if we found any cred where it matter for both cases
...
(default cred and provided cred)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-06 22:34:05 +00:00
Love Hörnquist Åstrand
323e9bf254
The variable `mechanisms´ might be NULL, use a diffrent counter if we
...
manged to inquire the underlaying creds or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17813 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-06 22:32:28 +00:00
Love Hörnquist Åstrand
07b69b1028
If the desired mechanism can't convert the name to a MN, fail with
...
GSS_S_BAD_NAME rather then a NULL de-reference.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-06 22:30:09 +00:00
Love Hörnquist Åstrand
0b7b83d732
Only allow exporting MN, reset exported_name.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:41:57 +00:00
Love Hörnquist Åstrand
1fac73929a
if the underlaying mech doesn't support gss_indicate_mechs, use the
...
oid in the mechswitch structure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:36:49 +00:00
Love Hörnquist Åstrand
f69250b34c
fix argument to gss_release_cred
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 08:50:49 +00:00
Love Hörnquist Åstrand
348154aed4
(gss_set_cred_option): free memory on failure
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17769 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:35:17 +00:00
Love Hörnquist Åstrand
81e9020b7d
Insert the delegated sub cred on the delegated cred handle, not cred handle
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:11:48 +00:00
Love Hörnquist Åstrand
f6770953cf
(gss_accept_sec_context): handle the case where ret_flags == NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 18:42:41 +00:00
Love Hörnquist Åstrand
2901cf9c42
(add_builtin): set _gss_mech_switch->gm_mech_oid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17764 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 18:04:41 +00:00
Love Hörnquist Åstrand
ce5954837b
(gss_set_cred_option): laod mechs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17763 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 17:41:54 +00:00
Love Hörnquist Åstrand
efa462a843
Add gss_release_oid, reverse of gss_duplicate_oid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 09:34:54 +00:00
Love Hörnquist Åstrand
6e451eae2a
On failure to find a correct error string, set status_string to NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17744 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 21:53:38 +00:00
Love Hörnquist Åstrand
04265bce70
(gss_import_name): avoid type-punned/strict aliasing rules
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 21:23:13 +00:00
Love Hörnquist Åstrand
dae9377cfa
avoid type-punned/strict aliasing rules
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 08:23:53 +00:00
Love Hörnquist Åstrand
b79c379578
(gss_set_cred_option): support the case where *cred_handle == NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 07:17:26 +00:00
Love Hörnquist Åstrand
65d9f1bd98
(gss_krb5_import_cred): make sure cred is GSS_C_NO_CREDENTIAL on failure.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 23:42:32 +00:00
Love Hörnquist Åstrand
b7090bd0ed
(gss_acquire_cred): if desired_mechs is NO_OID_SET, there is a need to
...
load the mechs, so always do that.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 23:15:18 +00:00