Commit Graph

9004 Commits

Author SHA1 Message Date
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
706ef0ecd5 (krb5_parse_name): set *principal to NULL the first thing we do, so
that on failure its set to a known value


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:30:15 +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
0af8ebf043 (krb5_storage_from_fd): don't leak fd on malloc failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 21:23:19 +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
2709915a99 (krb5_cc_new_unique): use KRB5_DEFAULT_CCNAME as the default prefix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 17:08:40 +00:00
Love Hörnquist Åstrand
8cd7187d18 Add extern "C" for C++.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 13:42:39 +00:00
Love Hörnquist Åstrand
0462a61c9d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 13:41:49 +00:00
Love Hörnquist Åstrand
f4e84f2cac Add rtbl_add_column_entryv functions, printf like
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 13:41:40 +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
Love Hörnquist Åstrand
5e8ef3b0f0 Add mech/gss_release_oid.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 09:35:59 +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
3139d01195 preferred_mech_type was allocated with gss_duplicate_oid in one place
and assigned static varianbles a the second place. change that static
assignement to gss_duplicate_oid and bring back gss_release_oid.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17746 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 09:33:03 +00:00
Love Hörnquist Åstrand
ba3568494e (_gss_spnego_delete_sec_context): don't release preferred_mech_type
and negotiated_mech_type, they where never allocated from the
begining.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 09:25:08 +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
0ba9f5786e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17740 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 08:24:05 +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
cafe5bd62e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17738 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 07:29:20 +00:00
Love Hörnquist Åstrand
498cd10430 Make gss_name_t an opaque type.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 07:28:31 +00:00
Love Hörnquist Åstrand
03567db502 make gss_name_t an opaque type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17736 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-29 07:27:26 +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
318994275e Add gss_set_cred_option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 23:46:41 +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