Commit Graph

1334 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
8dbc27dc5a Make copies of the mechname if there is no canonical name. Also don't
clobber the orignal name. From Rafal Malinowski.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21218 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 08:25:10 +00:00
Love Hörnquist Åstrand
e95f7ab196 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21207 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 06:02:00 +00:00
Love Hörnquist Åstrand
8b203992a0 Use heim_ntlm_calculate_ntlm2_sess.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21206 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 06:01:48 +00:00
Love Hörnquist Åstrand
93c6ed3107 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 05:27:07 +00:00
Love Hörnquist Åstrand
5013f6cbb5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21188 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 03:31:26 +00:00
Love Hörnquist Åstrand
c84d4731b3 Only wrap the delegated cred if we got a delegated mech cred.
From Rafal Malinowski.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21187 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 03:30:45 +00:00
Love Hörnquist Åstrand
79f9985a9c Only wrap the delegated cred if we are going to return it to the consumer.
From Rafal Malinowski.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 03:29:02 +00:00
Love Hörnquist Åstrand
b3d275ac40 Fixed memory leak pointed out by Rafal Malinowski, also while here
moved to use NegotiationToken for decoding.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 03:23:49 +00:00
Love Hörnquist Åstrand
3a5f005244 (_gsskrb5_pseudo_random): add missing break.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:28:44 +00:00
Love Hörnquist Åstrand
c0661b67f2 Set *minor_status unconditionallty, its done later anyway.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:26:50 +00:00
Love Hörnquist Åstrand
ab8094ae4c Init get_mic to 0.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:23:14 +00:00
Love Hörnquist Åstrand
fd3ca527e1 Free memory in failure case, found by beam.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:19:59 +00:00
Love Hörnquist Åstrand
23e434119d Handle mech_type being NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:11:07 +00:00
Love Hörnquist Åstrand
cd23060c10 Handle cred_name being NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:08:24 +00:00
Love Hörnquist Åstrand
0dea8f59be Free memory in error case, found by beam.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:05:26 +00:00
Love Hörnquist Åstrand
811bb58fb6 Use ctx->gssflags for flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21079 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 00:25:25 +00:00
Love Hörnquist Åstrand
4ec842b540 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:46:32 +00:00
Love Hörnquist Åstrand
a8699b8454 Use KRB5_PRINCIPAL_UNPARSE_DISPLAY, this is not ment for machine consumption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21077 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:42:56 +00:00
Love Hörnquist Åstrand
90c8aa259d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 15:39:20 +00:00
Love Hörnquist Åstrand
8911675d8e (kdc_alloc): free memory on failure, pointed out by Rafal Malinowski.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21037 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 15:39:05 +00:00
Love Hörnquist Åstrand
b98022f088 (kdc_destroy): free context when done, pointed out by Rafal Malinowski.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 15:35:28 +00:00
Love Hörnquist Åstrand
a906ca54bf (_gss_spnego_display_name): if input_name is null, fail.
From Rafal Malinowski.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 15:32:47 +00:00
Love Hörnquist Åstrand
cc4333b758 remove cvs ignore files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Love Hörnquist Åstrand
9df9f6a9da revert 21003
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:53:10 +00:00
Love Hörnquist Åstrand
12df8538af use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:42:05 +00:00
Love Hörnquist Åstrand
f3b2b8b19c Make sure the gethostname() returned string is NUL terminated.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 21:19:22 +00:00
Love Hörnquist Åstrand
19f39c8621 Free memory when done.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 17:42:50 +00:00
Love Hörnquist Åstrand
af5f66bb0d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20811 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 03:24:38 +00:00
Love Hörnquist Åstrand
f188987fa3 Test both with and without keyex.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 23:21:47 +00:00
Love Hörnquist Åstrand
fedbf25113 If we didn't set session key, don't expect one back.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 23:19:00 +00:00
Love Hörnquist Åstrand
d791782559 Set keyex flag and calculate session key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 23:15:55 +00:00
Love Hörnquist Åstrand
7d011aac3b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 23:04:26 +00:00
Love Hörnquist Åstrand
5e36b724c0 Use the return value before is overwritten by later calls.
From Rafal Malinowski


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 23:01:27 +00:00
Love Hörnquist Åstrand
786db415e8 Give an minor_status argument to gss_release_oid_set.
From Rafa? Malinowski


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 22:50:06 +00:00
Love Hörnquist Åstrand
f2f278d34e x
x


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 15:08:50 +00:00
Love Hörnquist Åstrand
acfd5a4121 Catch errors and return the up the stack.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 15:07:09 +00:00
Love Hörnquist Åstrand
becdb44583 more testing of lifetimes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20694 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 13:58:46 +00:00
Love Hörnquist Åstrand
ee246ab9ac Use gss oid_set functions from mechglue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-17 18:44:31 +00:00
Love Hörnquist Åstrand
b2684d8ed2 Drop the gss oid_set function for the krb5 mech, use the mech glue
versions instead. Pointed out by Rafal Malinowski.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-17 18:42:30 +00:00
Love Hörnquist Åstrand
88bbe318c5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 18:04:11 +00:00
Love Hörnquist Åstrand
87bdbf8e2c Set session key only if we are returned a session key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 18:03:39 +00:00
Love Hörnquist Åstrand
e44dcb7458 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 03:15:30 +00:00
Love Hörnquist Åstrand
99df08ed7e switched MIN to min to make compile on solaris.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 03:12:05 +00:00
Love Hörnquist Åstrand
83d42d8b1d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20635 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-09 15:34:49 +00:00
Love Hörnquist Åstrand
ad2854bcfc Fill in all of the variables if they are passed in. Pointed out by Phil Fisher.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-09 15:33:01 +00:00
Love Hörnquist Åstrand
54ca9c0da6 Fix copy and paste error, bug spotted by from Phil Fisher.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 14:01:46 +00:00
Love Hörnquist Åstrand
3fe9e74b9b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 13:57:28 +00:00
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
9d9b7dedbc more correct tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20623 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 13:51:49 +00:00