Commit Graph

63 Commits

Author SHA1 Message Date
Love Hornquist Astrand
dcf7dc9a93 make oid const 2009-11-22 12:30:37 -08:00
Love Hornquist Astrand
bff407bc9a add context to gss_context_query_attributes() 2009-11-22 12:30:24 -08: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 Hornquist Astrand
1dd94e44ba Switch to macros for c++ extern "C" to please editors that want to autoindent 2009-07-23 19:27:34 +02:00
Love Hörnquist Åstrand
57e31f7593 More tests for GSSAPI_DEPRECATED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-16 18:27:37 +00: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
ad9ad11485 add store-cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:25:07 +00:00
Love Hörnquist Åstrand
f4db5edd09 add conf_state to iov_length
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:24:39 +00:00
Love Hörnquist Åstrand
aad6eb3ace deprecate sign/seal functions (version 1 of the interface).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 19:12:01 +00:00
Love Hörnquist Åstrand
3db06f4f95 add GSS_C_ATTR_STREAM_SIZES
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 19:11:40 +00:00
Love Hörnquist Åstrand
810b53938d move gss_context_stream_sizes here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24741 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 19:11:20 +00:00
Love Hörnquist Åstrand
5ab497d8c0 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24717 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 18:35:07 +00:00
Love Hörnquist Åstrand
a81059aa4c More flags to be compatible with MIT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 18:34:56 +00:00
Love Hörnquist Åstrand
260b45847b More flags to be compatible with MIT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 18:34:26 +00:00
Love Hörnquist Åstrand
77169b7696 fix header protection
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:49:05 +00:00
Love Hörnquist Åstrand
a7f0c2c64c add NTLM mech to its own file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:46:46 +00:00
Love Hörnquist Åstrand
8c4bbe5c5f move NTLM mech to its own file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:46:18 +00:00
Love Hörnquist Åstrand
a265538dd9 Include <gssapi.h> for compat reasons.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24381 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:34:49 +00:00
Love Hörnquist Åstrand
03115167ce no implicit include of mech headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24380 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:34:39 +00:00
Love Hörnquist Åstrand
63d1d155f2 switch from unsigned int to int for iov_count
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:55:56 +00:00
Love Hörnquist Åstrand
7f6d448621 implement the new gss_*_iov interfaces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24055 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:49:37 +00:00
Love Hörnquist Åstrand
c3548336ef Drop duplicate gss_inquire_sec_context_by_oid, From Christin Krause.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23879 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-08 16:15:24 +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
67cd683b98 ifNOTdef
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23707 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 01:12:52 +00:00
Love Hörnquist Åstrand
5829611b38 use macro
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23706 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 01:12:45 +00:00
Love Hörnquist Åstrand
d1e3f79583 Mark gsskrb5_set_send_to_kdc deprecated.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 01:12:37 +00:00
Love Hörnquist Åstrand
f72a279efc change type to int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-27 11:13:59 +00:00
Love Hörnquist Åstrand
541c7a5d2b allow registration of krb5_plugins though the gss-api layer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-27 11:13:48 +00:00
Love Hörnquist Åstrand
7a77c27995 add GSS_C_DELEG_POLICY_FLAG = 32768
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 09:57:44 +00:00
Love Hörnquist Åstrand
39fe446983 Support parsing KRB-ERROR passed back from windows server when the time is out of sync, modify krb5_cc_[sg]et_config interface to handle principals too, add tests for this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:37:48 +00:00
Love Hörnquist Åstrand
693a4c4358 Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-05-29 02:12:26 +00:00
Love Hörnquist Åstrand
fd67ddb9c7 add krb5_gss_register_acceptor_identity
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-05-29 02:11:53 +00:00
Love Hörnquist Åstrand
795ee939ea Add declspec for Windows
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-17 10:01:57 +00:00
Love Hörnquist Åstrand
27a3ca100e Add flag to not add gss-api INT|CONF to the negotiation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-26 12:40:35 +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
cd72133d4c add GSS_KRB5_CCACHE_NAME_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 08:51:32 +00:00
Love Hörnquist Åstrand
c028345ba0 try to load pseudo_random
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-23 23:41:53 +00:00
Love Hörnquist Åstrand
a9a686862d add ntlm mech oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19360 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:02:54 +00:00
Love Hörnquist Åstrand
98e6018ae2 add GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 01:05:34 +00:00
Love Hörnquist Åstrand
b402bc547b Use int32_t for enctypes for now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 01:00:30 +00:00
Love Hörnquist Åstrand
75ecdd2c1e GSS_KRB5_S_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 00:39:50 +00:00
Love Hörnquist Åstrand
67070a0b2f Add gss_krb5_set_allowable_enctypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 00:29:12 +00:00
Love Hörnquist Åstrand
6c70ad3bff add GSS_KRB5_SET_DEFAULT_REALM_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 23:01:01 +00:00
Love Hörnquist Åstrand
a0c377d2fd Add gsskrb5_set_default_realm.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 22:55:56 +00:00
Love Hörnquist Åstrand
51c7ede9d6 Add extraction of keyblock function, from Andrew Bartlett.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:06:09 +00:00
Love Hörnquist Åstrand
8ddaadec0e Rename various routines and constants from canonize to canonicalize.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 02:42:17 +00:00
Love Hörnquist Åstrand
d5fc4ef18d add gsskrb5_extract_authtime_from_sec_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 22:04:03 +00:00
Love Hörnquist Åstrand
e82fe544c3 add GSS_KRB5_GET_AUTHTIME_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 21:50:24 +00:00