Commit Graph

12539 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
7ec533b6db improve readability of ->open ifdef, check if version >= 4.1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 02:38:02 +00:00
Love Hörnquist Åstrand
d1025f77d8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 01:31:33 +00:00
Love Hörnquist Åstrand
0540f13b86 prefix all struct HDB elements with hdb_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 00:25:35 +00:00
Love Hörnquist Åstrand
ef91ed3046 (krb5_get_init_creds_opt_copy): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:37:59 +00:00
Love Hörnquist Åstrand
5504e2a00c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:25:19 +00:00
Love Hörnquist Åstrand
286019f6cd (krb5_rd_req): allow caller to pass in a key in the auth_context, they
way processes that doesn't use the keytab can still pass in the key of
the service (matches behavior of MIT Kerberos).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:22:57 +00:00
Love Hörnquist Åstrand
332e117688 (init_init_creds_ctx): make void since it doesn't return an error,
update call sites
(krb5_get_init_creds_keytab): add out label again


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:20:50 +00:00
Love Hörnquist Åstrand
21554e0cbb collect all init_creds context into a structure so it can easier be
passed around, also, while here, change nonce for every request


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:40:44 +00:00
Love Hörnquist Åstrand
763a230714 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12846 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:06:49 +00:00
Love Hörnquist Åstrand
f6ab4150d5 remove #if 0'ed code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:06:18 +00:00
Love Hörnquist Åstrand
ef95935737 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:39:38 +00:00
Love Hörnquist Åstrand
70f79440e5 (init_as_req): don't realloc data before the loop, add_padata() will
handle that itself


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:38:59 +00:00
Love Hörnquist Åstrand
a453cdbddc (add_addrs): don't increase addr->len until in contains interesting
data, use right iteration counter when clearing the addresses


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:21:00 +00:00
Love Hörnquist Åstrand
6e10f776c4 (log_realloc): increase len after realloc returns sucessfully
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 23:56:14 +00:00
Love Hörnquist Åstrand
b6c1d10f6f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 04:22:11 +00:00
Love Hörnquist Åstrand
63904d7af3 (gsskrb5_accept_sec_context): set sequence number when not requesting
mutual auth
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 04:20:33 +00:00
Love Hörnquist Åstrand
2c1317d353 (init_auth): set sequence number when not requesting mutual auth
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 04:15:36 +00:00
Love Hörnquist Åstrand
851acf88cd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-16 12:12:52 +00:00
Love Hörnquist Åstrand
6a38642fc0 (*): set minor_status
(gss_wrap): set conf_state to conf_req_flags on success
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-16 12:12:42 +00:00
Love Hörnquist Åstrand
e2a057b359 (gss_wrap_size_limit): use existing function
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12834 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-16 12:00:25 +00:00
Love Hörnquist Åstrand
45984d2d2c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 21:18:09 +00:00
Love Hörnquist Åstrand
07970b6175 (gss_indicate_mechs): in case of error, free mech_set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 21:15:42 +00:00
Love Hörnquist Åstrand
2a072a6aeb (gss_indicate_mechs): add SPNEGO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 21:12:52 +00:00
Love Hörnquist Åstrand
9b76026dab x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 16:19:23 +00:00
Love Hörnquist Åstrand
8f56b409d0 fix another int vs krb5_error_code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:12:08 +00:00
Love Hörnquist Åstrand
3f1d0789af x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12826 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:05:13 +00:00
Love Hörnquist Åstrand
c82cfd62b2 fix prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12825 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:04:43 +00:00
Love Hörnquist Åstrand
1bc0573626 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 02:37:10 +00:00
Love Hörnquist Åstrand
b84f7ecd80 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12821 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 21:55:58 +00:00
Love Hörnquist Åstrand
497233da66 include <limits.h> for ULONG_MAX
noted by Wissler Magnus <M.Wissler@abalon.se> on heimdal-discuss


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 21:54:58 +00:00
Love Hörnquist Åstrand
ceb75e1f48 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 20:50:15 +00:00
Love Hörnquist Åstrand
b1576251e1 (spnego_initial): add #if 0 out version of the CHOICE branch encoding,
also where here, free no longer used memory


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 20:49:11 +00:00
Love Hörnquist Åstrand
b291ac9e96 close socket when we are done, don't allow the server to restart
gssapi negotiation


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 19:39:05 +00:00
Love Hörnquist Åstrand
322de9cac3 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 09:34:08 +00:00
Love Hörnquist Åstrand
2d4baf01e7 (proto): use select_mech
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 09:32:42 +00:00
Love Hörnquist Åstrand
192371fcb2 use getarg
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 09:31:54 +00:00
Love Hörnquist Åstrand
70bc6483ae prototype for select_mech
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12813 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 09:30:51 +00:00
Love Hörnquist Åstrand
29cede4fb6 (select_mech): return the gss_OID from a mech name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 09:29:59 +00:00
Love Hörnquist Åstrand
48146f86c9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12811 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 00:46:46 +00:00
Love Hörnquist Åstrand
d1855bdb24 print both source and target
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 00:32:25 +00:00
Love Hörnquist Åstrand
7bd531f305 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 00:22:26 +00:00
Love Hörnquist Åstrand
42555fd011 build http_client
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 00:21:55 +00:00
Love Hörnquist Åstrand
a697958544 A simplistic client implementing draft-brezak-spnego-http-04.txt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12807 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 00:20:09 +00:00
Love Hörnquist Åstrand
bb22f358b1 (spnego_initial): catch errors and return them
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 23:44:25 +00:00
Love Hörnquist Åstrand
d28e2d0ebc add support for printing Enumerated
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 16:08:56 +00:00
Love Hörnquist Åstrand
36c72f770b update .Dd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:57:48 +00:00
Love Hörnquist Åstrand
dd9620c56f now support for GSS_SPNEGO_MECHANISM
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:57:08 +00:00
Love Hörnquist Åstrand
1448ad988f SPNEGO doesn't include gss wrapping on SubsequentContextToken like the
Kerberos 5 mech does.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:54:09 +00:00
Love Hörnquist Åstrand
c65c7ace38 (spnego_reply): SPNEGO doesn't include gss wrapping on
SubsequentContextToken like the Kerberos 5 mech does. Lets check for
it anyway.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12801 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 10:40:12 +00:00
Love Hörnquist Åstrand
2754625103 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12800 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-09 03:49:30 +00:00