Commit Graph

25 Commits

Author SHA1 Message Date
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
fa502c6648 Add support for gss_{import,export}_cred() as requested by metze
Works for krb5 and SPNEGO mechanisms. Kerberos credentials are passed as
credential cache names, or if there are memory based credentials, inband in the protocol. This means that the credentials buffers must be keep secret.

As documented by IBM (they have the wrong prototype though)
and GGF (GSS-API Extensions) back in 2001
2009-07-29 13:36:02 +02:00
Love Hörnquist Åstrand
c99b2003e2 Implement gss_wrap_iov, gss_unwrap_iov for CFX type encryption types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-06-22 17:56:41 +00:00
Love Hörnquist Åstrand
269a7a057b flatten include headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24382 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:35:00 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +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
a2d71428c2 Try to leak less memory in the failure case.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-07 22:30:08 +00:00
Love Hörnquist Åstrand
00bcd44370 Switch from using a specific error message context in the TLS to have
a whole krb5_context in TLS. This have some interestion side-effekts
for the configruration setting options since they operate on
per-thread basis now.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 18:02:57 +00:00
Love Hörnquist Åstrand
0ed5fc55f9 _gsskrb5_extract_authz_data_from_sec_context no longer used, bye bye
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18950 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 02:42:50 +00:00
Love Hörnquist Åstrand
dfa6f7b248 reference all include files using krb5/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-07 22:16:04 +00:00
Love Hörnquist Åstrand
ee09f98c15 Rename local include file, remove global files.
Stop exposing global gssapi symbols.
Rename gss_context_id_t and gss_cred_id_t to local names.
Remove SPNEGO code, its now in its own gssapi module.
Add mechglue inquire functions.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-28 08:54:04 +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
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
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
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
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
41ee26c847 rename gss_krb5_extract_authz_data_from_sec_context to
gsskrb5_extract_authz_data_from_sec_context


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-01 15:11:09 +00:00
Love Hörnquist Åstrand
90b52bb83b (gss_krb5_extract_authz_data_from_sec_context):
check that we have a ticket before we start to use it


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 21:56:26 +00:00
Love Hörnquist Åstrand
4ddc6a08ed (gss_krb5_extract_authz_data_from_sec_context):
return the kerberos authorizationdata, from idea of Luke Howard


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12714 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 19:52:16 +00:00
Love Hörnquist Åstrand
42f3fc029a - do some basic locking (no reference counting so contexts can be
removed while still used)
- don't export gss_ctx_id_t_desc_struct and gss_cred_id_t_desc_struct
- make sure all lifetime are returned in seconds left until expired,
  not in unix epoch


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-21 14:52:14 +00:00
Love Hörnquist Åstrand
43c56a1714 (gss_krb5_copy_ccache): set minor_status
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-16 17:47:44 +00:00
Assar Westerlund
e55eee640b try to return the error string from krb5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 09:16:47 +00:00
Assar Westerlund
bfb733c50e add gss_krb5_copy_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 00:35:48 +00:00