Commit Graph

720 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
6325518929 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16570 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-16 13:15:05 +00:00
Love Hörnquist Åstrand
20beaf630b (gss_delete_sec_context): if the context handle is GSS_C_NO_CONTEXT,
don't fall over.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16569 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-16 13:12:29 +00:00
Love Hörnquist Åstrand
5a0f157944 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16376 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:30:15 +00:00
Love Hörnquist Åstrand
0fd43e84b7 Replace gss_krb5_import_ccache with gss_krb5_import_cred and add more references
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16375 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:29:56 +00:00
Love Hörnquist Åstrand
f223888240 x
x


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 13:09:59 +00:00
Love Hörnquist Åstrand
8b53c6c4f2 Change gss_krb5_import_ccache to gss_krb5_import_cred, it can handle keytabs too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16350 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 11:52:45 +00:00
Love Hörnquist Åstrand
2fab85ec36 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 09:31:56 +00:00
Love Hörnquist Åstrand
723e43d205 test acquire_cred(GSS_C_ACCEPT)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16348 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 09:22:03 +00:00
Love Hörnquist Åstrand
afe55cba30 (gss_add_cred): avoid deadlock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 09:20:32 +00:00
Love Hörnquist Åstrand
0c372958f3 (gssapi_lifetime_left): define the 0 lifetime as GSS_C_INDEFINITE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16346 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 09:19:52 +00:00
Love Hörnquist Åstrand
63506f62b3 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16341 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 21:00:03 +00:00
Love Hörnquist Åstrand
8ed16b3e1c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 16:26:13 +00:00
Love Hörnquist Åstrand
c9962c948d (acquire_acceptor_cred): only check if principal exists if we got
called with principal as an argument.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16338 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 16:26:02 +00:00
Love Hörnquist Åstrand
68d7efd2e4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 15:50:58 +00:00
Love Hörnquist Åstrand
1cff67e8ce (acquire_acceptor_cred): check that the acceptor exists in the keytab
before returning ok.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16336 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 15:50:42 +00:00
Love Hörnquist Åstrand
8ce2056373 (gss_krb5_import_cred): fix buglet, from Andrew Bartlett.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-28 23:05:44 +00:00
Love Hörnquist Åstrand
d7e11e5716 s/krb5_keytab_get_full_name/krb5_kt_get_full_name/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-26 11:00:08 +00:00
Love Hörnquist Åstrand
e4f39fc8ae Use gss_krb5_import_cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-25 15:57:35 +00:00
Love Hörnquist Åstrand
e5d85fd42d Rename gss_krb5_import_ccache to gss_krb5_import_cred.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16293 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-25 14:43:03 +00:00
Love Hörnquist Åstrand
a85c42da3f Rename gss_krb5_import_ccache to gss_krb5_import_cred and let it grow
code to handle keytabs too.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16292 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-25 14:39:57 +00:00
Love Hörnquist Åstrand
d28785e212 Change sematics of ok-as-delegate to match windows if
[gssapi]realm/ok-as-delegate=true is set, otherwise keep old sematics.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16283 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 11:52:49 +00:00
Love Hörnquist Åstrand
6ece760454 (gss_release_cred): use GSS_CF_DESTROY_CRED_ON_RELEASE to decide if
the cache should be krb5_cc_destroy-ed


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16282 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:57:35 +00:00
Love Hörnquist Åstrand
f0dc59770a (acquire_initiator_cred): GSS_CF_DESTROY_CRED_ON_RELEASE on created credentials.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16281 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:56:25 +00:00
Love Hörnquist Åstrand
2a0d1e1d88 (gsskrb5_accept_delegated_token): rewrite to use gss_krb5_import_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:55:19 +00:00
Love Hörnquist Åstrand
6879aaef09 (gss_cred_id_t_desc_struct): add field cred_flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:51:17 +00:00
Love Hörnquist Åstrand
d7396a3cea (gss_krb5_import_ccache): Use krb5_cc_get_full_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-01 09:41:59 +00:00
Love Hörnquist Åstrand
70ec67ed73 Remove signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-01 06:55:55 +00:00
Love Hörnquist Åstrand
7f2110c0ba x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16269 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-31 16:07:59 +00:00
Love Hörnquist Åstrand
069a5f19a2 Document that gss_krb5_import_ccache is copy by reference.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-31 16:07:23 +00:00
Love Hörnquist Åstrand
4cc93f5d2e (gss_krb5_import_ccache): Instead of making a copy of the ccache, make
a reference by getting the name and resolving the name. This way the
cache is shared, this flipp side is of course that if someone calls
krb5_cc_destroy the cache is lost for everyone.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-31 16:02:08 +00:00
Love Hörnquist Åstrand
d4a3ad2adf x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16266 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-31 15:59:30 +00:00
Love Hörnquist Åstrand
3cf6e96dbb Remove memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-31 15:59:11 +00:00
Love Hörnquist Åstrand
085f3eb85c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:30:26 +00:00
Love Hörnquist Åstrand
c55b53060b build test_kcred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16243 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:30:12 +00:00
Love Hörnquist Åstrand
b742a50cf7 Document gss_krb5_import_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16242 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:29:34 +00:00
Love Hörnquist Åstrand
780dc8dd41 Sort and add gss_krb5_import_ccache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16241 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:26:55 +00:00
Love Hörnquist Åstrand
8980a47d4a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16240 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:25:34 +00:00
Love Hörnquist Åstrand
a5755046b4 (_gssapi_krb5_ccache_lifetime): break out code used to extract
lifetime from a credential cache


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:25:16 +00:00
Love Hörnquist Åstrand
fc4f134e26 Add _gssapi_krb5_ccache_lifetime, used to extract lifetime from a
credential cache.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16238 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:23:48 +00:00
Love Hörnquist Åstrand
4084884d71 add gss_krb5_import_ccache, reverse of gss_krb5_copy_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:22:13 +00:00
Love Hörnquist Åstrand
afd104d9cd test gss_krb5_import_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:19:41 +00:00
Love Hörnquist Åstrand
b62b7a569e More verbose errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16228 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-25 19:41:32 +00:00
Love Hörnquist Åstrand
b3da510397 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16206 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-21 12:44:33 +00:00
Love Hörnquist Åstrand
bc4a1da9c6 (acquire_initiator_cred): use krb5_cc_cache_match to find a matching
creditial cache, if that failes, fallback to the default cache.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-21 12:44:08 +00:00
Love Hörnquist Åstrand
ac5ccfb7d6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 15:20:55 +00:00
Love Hörnquist Åstrand
5a5905fef1 Add gssapi_krb5_set_status and gssapi_krb5_clear_status
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16172 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 15:20:37 +00:00
Love Hörnquist Åstrand
4bd45a62b8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16159 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 07:25:54 +00:00
Love Hörnquist Åstrand
72fabc6c6b (spnego_reply): Don't pass back raw Kerberos errors, use GSS-API
errors instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 07:25:18 +00:00
Love Hörnquist Åstrand
a2eac30736 Add gssapi_krb5_clear_status, gssapi_krb5_set_status for handling error
messages.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 07:23:03 +00:00
Love Hörnquist Åstrand
07c8470d34 Use rk_UNCONST to avoid const warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15963 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 11:59:47 +00:00