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
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
400ccc768d
add GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-20 02:17:00 +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
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
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
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
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
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
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
fd78f09696
readd gss_spnego_inquire_names_for_mech
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17811 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-06 19:31:57 +00:00
Love Hörnquist Åstrand
3db3b74783
reimplement gss_spnego_inquire_names_for_mech
...
add support function _gss_spnego_supported_mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-06 19:31:24 +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
5f14a70630
drop gss_spnego_indicate_mechs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:38:02 +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
3a8f9143b7
let the mech glue layer implement gss_indicate_mechs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:35:45 +00:00
Love Hörnquist Åstrand
34d35f83bf
(gss_spnego_acquire_cred): don't care about desired_mechs, get our own
...
list with indicate_mechs and remote ourself.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17801 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:35:02 +00:00
Love Hörnquist Åstrand
909a02791f
remove gss_spnego_inquire_names_for_mech, let the mechglue layer implement it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17800 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 21:32:49 +00:00
Love Hörnquist Åstrand
bff708b6c9
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 08:51:06 +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
9b1216b13c
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:57:50 +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
606de3c785
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17776 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:28:36 +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
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
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
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
275bd7aed1
indicate mechs (for now)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 12:21:00 +00:00
Love Hörnquist Åstrand
e024f3655a
Build the gss program.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 12:06:30 +00:00
Love Hörnquist Åstrand
b51056b512
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 11:55:40 +00:00
Love Hörnquist Åstrand
3e8a39a63f
(gss_print_errors): don't try to print error when gss_display_status failed
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 11:55:28 +00:00
Love Hörnquist Åstrand
ace8ba1ea7
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 09:41:35 +00:00