Commit Graph

865 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
9972ce7b46 Don't add asn1 wrapping to token when using DCE_STYLE.
Patch from Stefan Metze.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23255 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-03 05:29:21 +00:00
Love Hörnquist Åstrand
81d68d4ee2 use DES_set_key_unchecked()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-27 18:51:26 +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
ab06e765d6 Use tmp to read ac->flags value to avoid warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-15 19:36:25 +00:00
Love Hörnquist Åstrand
2d405842ad (init_auth): use right variable to detect if we want to free or not.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-09 23:57:54 +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
088ad9f97d (acquire_initiator_cred): handle the credential cache better, use
destroy/close when appriate and for all cases. Thanks to Michael Allen
for point out the memory-leak that I also fixed.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-18 18:05:55 +00:00
Love Hörnquist Åstrand
e53ec599a7 global krb5_context no longer used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:56:55 +00:00
Love Hörnquist Åstrand
bf772f42e4 (acquire_acceptor_cred): Check if there is at least one entry in the
keytab before declaring it as an useful keytab.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 00:03:52 +00:00
Love Hörnquist Åstrand
5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
717464b9fa (acquire_acceptor_cred): don't claim everything is well on failure.
From Phil Fisher.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21221 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 08:42:10 +00:00
Love Hörnquist Åstrand
3a5f005244 (_gsskrb5_pseudo_random): add missing break.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:28:44 +00:00
Love Hörnquist Åstrand
c0661b67f2 Set *minor_status unconditionallty, its done later anyway.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:26:50 +00:00
Love Hörnquist Åstrand
a8699b8454 Use KRB5_PRINCIPAL_UNPARSE_DISPLAY, this is not ment for machine consumption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21077 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:42:56 +00:00
Love Hörnquist Åstrand
cc4333b758 remove cvs ignore files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Love Hörnquist Åstrand
786db415e8 Give an minor_status argument to gss_release_oid_set.
From Rafa? Malinowski


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 22:50:06 +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
99df08ed7e switched MIN to min to make compile on solaris.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 03:12:05 +00:00
Love Hörnquist Åstrand
ad2854bcfc Fill in all of the variables if they are passed in. Pointed out by Phil Fisher.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-09 15:33:01 +00:00
Love Hörnquist Åstrand
54ca9c0da6 Fix copy and paste error, bug spotted by from Phil Fisher.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 14:01:46 +00:00
Love Hörnquist Åstrand
98b5a48e90 reimplement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 12:10:53 +00:00
Love Hörnquist Åstrand
ccada1f55a add lib/gssapi/krb5/external.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 08:52:08 +00:00
Love Hörnquist Åstrand
9a9abce471 refactor code, implement GSS_KRB5_CCACHE_NAME_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 08:51:06 +00:00
Love Hörnquist Åstrand
031692fe75 Free list of limit enctypes if there is one.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-12 16:51:00 +00:00
Love Hörnquist Åstrand
d3807ad882 Add hideous glue for (NFS) clients that wants to limit the available
enctypes to what it can support (encryption in kernel). If there is no
enctypes selected for this credential, reset it to the default set of
enctypes.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-12 16:49:57 +00:00
Love Hörnquist Åstrand
862eb1e0dc Implement GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-12 16:49:17 +00:00
Love Hörnquist Åstrand
2994c5a57a (gsskrb5_cred): add list of supported enctypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-12 16:46:01 +00:00
Love Hörnquist Åstrand
dde69289ca Explain why we don't destroy the ccache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-07 22:36:39 +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
942fb2686e update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 11:57:46 +00:00
Love Hörnquist Åstrand
715d4a304f revert 1.75: (init_auth): only turn on GSS_C_CONF_FLAG and
GSS_C_INT_FLAG if the caller requseted it.

This is because Kerberos always support INT|CONF, matches behavior
with MS and MIT. The creates problems for the GSS-SPNEGO mech.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 11:56:20 +00:00
Love Hörnquist Åstrand
4ebb3aace3 constrain desired_output_len
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-24 01:55:32 +00:00
Love Hörnquist Åstrand
2a89a33fbe (krb5_mech): add _gsskrb5_pseudo_random
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20054 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-24 01:32:14 +00:00
Love Hörnquist Åstrand
f5799557d0 gss_pseudo_random for krb5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20051 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-24 01:30:13 +00:00
Love Hörnquist Åstrand
a96fe243c6 add KG_INPUT_TOO_LONG
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-24 00:14:24 +00:00
Love Hörnquist Åstrand
ba7418d3aa (GSS_KRB5_SET_DEFAULT_REALM_X): don't fail on success.
Bug report from Stefan Metzmacher.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-14 11:02:16 +00:00
Love Hörnquist Åstrand
fa438f7ca1 (init_auth): only turn on GSS_C_CONF_FLAG and GSS_C_INT_FLAG if the
caller requseted it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-13 10:33:20 +00:00
Love Hörnquist Åstrand
ece5f9603e Make krb5_get_init_creds_opt_free take a context argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:12:41 +00:00
Love Hörnquist Åstrand
92486672bd Better error strings, from Andrew Bartlet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-14 09:49:56 +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
edbd07c470 Include <gkrb5_err.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 00:36:40 +00:00
Love Hörnquist Åstrand
4fc98d8003 Move the GSS_KRB5_S error here.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18969 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-09 23:52:17 +00:00
Love Hörnquist Åstrand
d72c44110c Support GSS_KRB5_SET_DEFAULT_REALM_X.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18961 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 23:06:42 +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
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
0b2f6c4188 Add GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18943 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 21:05:03 +00:00
Love Hörnquist Åstrand
4806754426 Use IS_DCE_STYLE flag. There is no padding in DCE-STYLE, don't try to use to.
From Andrew Bartlett.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 19:05:16 +00:00
Love Hörnquist Åstrand
893d903659 Add IS_DCE_STYLE macro.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 17:57:43 +00:00
Love Hörnquist Åstrand
1a7ec40448 (init_auth): There is no OID wrapping on the reply token. From Andrew Bartlett
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 17:40:01 +00:00
Love Hörnquist Åstrand
3dced0866c (gsskrb5_acceptor_start): use krb5_rd_req_ctx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 14:52:05 +00:00