Love Hörnquist Åstrand
bee2a593cd
dont keep track of gc_usage, just figure it out at gss_inquire_cred() time
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20626 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 13:56:49 +00:00
Love Hörnquist Åstrand
3a4c55c9b8
(add_builtin): ok for __gss_mech_initialize() to return NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20625 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 13:55:03 +00:00
Love Hörnquist Åstrand
6eb598fa83
reimplement gss_krb5_ccache_name
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20383 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 08:49:53 +00:00
Love Hörnquist Åstrand
6752696815
(gss_acquire_cred): dont init cred->gc_mc every time in the loop.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20360 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-17 13:24:01 +00:00
Love Hörnquist Åstrand
bdff5b6032
(gss_krb5_set_allowable_enctypes): use the length of the array passed
...
in, stop leaking memory, check for error conditions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-12 16:43:50 +00:00
Love Hörnquist Åstrand
0e8f5d1e4b
Use right printf formater.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20084 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 12:12:08 +00:00
Love Hörnquist Åstrand
8c10154055
Catch error from underlaying mech on failure.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-24 01:31:35 +00:00
Love Hörnquist Åstrand
c028345ba0
try to load pseudo_random
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-23 23:41:53 +00:00
Love Hörnquist Åstrand
b5fe6cdd50
Add gss_pseudo_random.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20045 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-23 23:40:45 +00:00
Love Hörnquist Åstrand
50d94821d9
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 16:23:47 +00:00
Love Hörnquist Åstrand
5b0bb46664
Check in variable.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 16:21:05 +00:00
Love Hörnquist Åstrand
01a98f8ead
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19963 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 16:01:22 +00:00
Love Hörnquist Åstrand
5e5d0e2aa1
Reset variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19962 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 15:59:04 +00:00
Love Hörnquist Åstrand
f535bb06cc
Fix reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19961 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 15:57:51 +00:00
Love Hörnquist Åstrand
5051255f5e
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 15:09:24 +00:00
Love Hörnquist Åstrand
ec4eebc3bc
Reset out variables, fix memory leak.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 14:59:22 +00:00
Love Hörnquist Åstrand
a91751a349
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 13:56:18 +00:00
Love Hörnquist Åstrand
d12e6d103d
Zero out outbuffer on failure.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19957 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 13:48:11 +00:00
Love Hörnquist Åstrand
0db124f817
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 12:04:16 +00:00
Love Hörnquist Åstrand
01dec4c58f
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19954 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 11:50:23 +00:00
Love Hörnquist Åstrand
b23d37808e
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 11:16:35 +00:00
Love Hörnquist Åstrand
8391e794cb
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19952 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 10:16:15 +00:00
Love Hörnquist Åstrand
8688e0470a
Reset out variables using propper macros.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19951 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 10:14:58 +00:00
Love Hörnquist Åstrand
a6f8a10e7e
Reset out variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19950 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 10:10:08 +00:00
Love Hörnquist Åstrand
0406f11498
Reset out variables using propper macros.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 10:05:51 +00:00
Love Hörnquist Åstrand
c441e760b5
(_mg_buffer_zero): new macro that zaps a gss_buffer_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 10:03:07 +00:00
Love Hörnquist Åstrand
8ed92d4e85
sprinkel _gss_mg_error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 10:37:54 +00:00
Love Hörnquist Åstrand
0a7d314165
(gss_display_status): use _gss_mg_get_error to fetch the error from
...
underlaying mech, if it failes, let do the regular dance for GSS-CODE
version and a generic print-the-error code for MECH-CODE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 10:35:09 +00:00
Love Hörnquist Åstrand
5138355930
Don't include the NUL in the length of the string.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 10:26:07 +00:00
Love Hörnquist Åstrand
d2752533aa
Protoypes for _gss_mg_.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 10:19:27 +00:00
Love Hörnquist Åstrand
545bb59019
Glue to catch the error from the lower gss-api layer and save that for
...
later so gss_display_status() can show the error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 10:17:01 +00:00
Love Hörnquist Åstrand
48eb7bea6f
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:40:42 +00:00
Love Hörnquist Åstrand
02620cbb4e
add _gss_free_oid, reverse of _gss_copy_oid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:01:40 +00:00
Love Hörnquist Åstrand
ef6b5a7236
Make compile.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19367 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:12:20 +00:00
Love Hörnquist Åstrand
93482a2b67
Add the builtin ntlm mech
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19363 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:05:43 +00:00
Love Hörnquist Åstrand
e4ac6bf6ed
Add detection of NTLMSSP.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19361 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:04:14 +00:00
Love Hörnquist Åstrand
f34964d46f
(_gss_mech_cred_find): break out the cred finding to its own function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19037 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-14 12:33:11 +00:00
Love Hörnquist Åstrand
d1aeb0f6ce
When calling ->gm_set_cred_option and checking for success, use
...
GSS_S_COMPLETE. From Andrew Bartlet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 08:59:43 +00:00
Love Hörnquist Åstrand
53eeb7198a
Try better guessing what is mech we are going to select by looking
...
harder at the input_token, idea from Luke Howard's mechglue branch.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 03:30:12 +00:00
Love Hörnquist Åstrand
c4b2189f09
Implement gss_krb5_set_allowable_enctypes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 00:57:27 +00:00
Love Hörnquist Åstrand
e91161433a
Add gsskrb5_set_default_realm.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18963 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 23:11:03 +00:00
Love Hörnquist Åstrand
c978e4fb68
No depenency of the krb5 gssapi mech.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 22:15:52 +00:00
Love Hörnquist Åstrand
3dd9bbd06d
(gsskrb5_extract_authtime_from_sec_context): use _gsskrb5_decode_om_uint32
...
From Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 22:03:29 +00:00
Love Hörnquist Åstrand
79be8d802d
Add dummy gss_krb5_set_allowable_enctypes for now.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 21:57:47 +00:00
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