Commit Graph

132 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
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
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
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
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
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
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
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
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
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
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
Love Hörnquist Åstrand
c52efdc69a Reimplement GSS_KRB5_COPY_CCACHE_X to instead pass a fullname to the
credential, then resolve and copy out the content, and then close the cred.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 17:27:02 +00:00
Love Hörnquist Åstrand
ace187d740 Make work.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 16:20:41 +00:00
Love Hörnquist Åstrand
ab4040e2e7 (gss_krb5_import_cred): implement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:54:20 +00:00
Love Hörnquist Åstrand
c717bf03c2 Add gss_set_{sec_context,cred}_option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:39:23 +00:00
Love Hörnquist Åstrand
2ec4456fee fix compile warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:39:00 +00:00
Love Hörnquist Åstrand
61a30996ac (gss_krb5_import_cred): almost an implementation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:38:24 +00:00
Love Hörnquist Åstrand
364d347054 Add gss_set_cred_option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:27:11 +00:00
Love Hörnquist Åstrand
2ccb1cbe55 Add gss_set_sec_context_option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17717 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:26:57 +00:00
Love Hörnquist Åstrand
8c884b3083 Add gss_inquire_cred_by_oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 14:16:33 +00:00
Love Hörnquist Åstrand
1c95df4d9b Add dummy gss_krb5_import_cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17712 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 10:12:51 +00:00
Love Hörnquist Åstrand
734c337ddf add leftover files from merge
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17703 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 09:08:13 +00:00
Love Hörnquist Åstrand
b7848f2c58 remove manpages, add leftover files from merge
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17702 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 09:07:08 +00:00
Love Hörnquist Åstrand
d3f8f8e122 Bug fixes, cleanup, compiler warnings, restructure code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17700 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 09:00:26 +00:00
Love Hörnquist Åstrand
2baa7e7d61 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17692 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 08:34:45 +00:00