Commit Graph

116 Commits

Author SHA1 Message Date
Nicolas Williams
3ba12317a0 Misc fixes (coverity) 2016-11-28 15:09:55 -06:00
Nicolas Williams
b4cf4de807 Fix warnings (clang 3.6) 2016-02-26 01:04:31 -06:00
Nicolas Williams
13814606f4 Fix keytab file and lock leak when trying all keys 2013-07-31 18:17:17 -05:00
Love Hornquist Astrand
39abb10aa9 move where we reset etypelist 2013-07-18 16:36:08 +02:00
Love Hornquist Astrand
28611511ec adopt _krb5_get_ad 2013-07-16 15:10:24 +02:00
Roland C. Dowdeswell
f0f07ff408 Use krb5_enomem() more consistently in lib/krb5. 2013-02-13 16:15:00 +08:00
Marco Molteni
894008ab82 Add doxygen and source comments to some functions of the krb5 API
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2012-05-09 08:15:42 +02:00
Nicolas Williams
3bebbe5323 Fixes to make Heimdal -Wall -Werror clean
These fixes make developer mode build, at least on Ubuntu.
2011-11-02 21:42:08 -05:00
Andrew Bartlett
84bc108d8f lib/krb5: Allow any kvno to match when searching the keytab.
Windows does not use a KVNO when it checks it's passwords, and MIT
doesn't check the KVNO when no acceptor identity is specified (looping
over all keys in the keytab).

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
2011-07-24 10:37:40 -07:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
9ed040da38 fix compile warning 2011-05-17 23:01:40 -07:00
Jeffrey Altman
6850d6a65f avoid uninit variable and unreachable code warnings
most of these warnings are not problems because of ample
use of abort() calls.  However, the large number of warnings
makes it difficult to identify real problems.  Initialize
the variables to shut up the compilers.

Change-Id: I8477c11b17c7b6a7d9074c721fdd2d7303b186a8
2011-05-17 12:02:16 -04:00
Love Hornquist Astrand
77c7747cc3 plug memory leak 2011-05-08 11:21:44 -07:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Karolin Seeger
035106be97 s4-krb5: Fix typos in comment.
Karolin

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-26 15:12:09 -07:00
Love Hornquist Astrand
d893207413 add check-rd-req-server 2010-09-01 21:56:17 -07:00
Love Hornquist Astrand
687db64c56 Patch from Secure Endpoints/Asanka Herath for windows support 2009-12-21 08:45:28 +01:00
Love Hörnquist Åstrand
942a821fab remove RCSID
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-04 06:17:40 +00:00
Love Hörnquist Åstrand
8915cd15a7 If caller specified a server, fail on failure to find keytab entry.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:47:41 +00:00
Love Hörnquist Åstrand
e19011086b drop shadowing variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:47:13 +00:00
Love Hörnquist Åstrand
9b826e1a62 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:42:16 +00:00
Love Hörnquist Åstrand
10269ef2f0 doxygen fixup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24271 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:47:05 +00:00
Love Hörnquist Åstrand
4f39ee6fd9 doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:46:55 +00:00
Love Hörnquist Åstrand
e8648d75b0 Use principal not found in keytab code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:46:26 +00:00
Love Hörnquist Åstrand
5112116a84 Allow inctx to be NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24258 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:58 +00:00
Love Hörnquist Åstrand
6239532d9a If no server given, interate over keytab to find a key that can
decrypt the request. The resulting server principal is what in the
keytab, the real service can be fetched from.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24257 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:48 +00:00
Love Hörnquist Åstrand
b474c84bd9 use the asn1 decoder directly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24070 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:52:40 +00:00
Love Hörnquist Åstrand
60d35f97bc use asn1 decoder function directly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24060 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:50:58 +00:00
Love Hörnquist Åstrand
23692ff109 (krb5_rd_req_out_ctx_free): free ticket, from Klas Lindfors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-01 19:07:27 +00:00
Love Hörnquist Åstrand
03babea1e3 switch to krb5_clear_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-14 02:55:39 +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
1b3fa39064 N_()ify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23796 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:32:44 +00:00
Love Hörnquist Åstrand
5aa921b4d3 Save the session ticket key when we know everything is fine and the
ticket was valid.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23415 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:35:44 +00:00
Love Hörnquist Åstrand
7fcd266fdd use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 04:32:32 +00:00
Love Hörnquist Åstrand
f56b0f9866 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22872 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:36 +00:00
Love Hörnquist Åstrand
872980ff98 Document krb5_rd_req_in_set_pac_check.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 21:52:07 +00:00
Love Hörnquist Åstrand
c651661d7f use KRB5_CTX_F_CHECK_PAC to init check_pac field in the krb5_rd_req_in_ctx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22230 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 21:41:51 +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
743ccd85cf make work with cpp again, reported by Hai Zaar
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-27 14:21:04 +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
f523c291f5 clear error strings
.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-11 11:15:30 +00:00
Love Hörnquist Åstrand
6a8b22c01d Revert previous, the PAC should always be verified using o->keyblock,
just check on Windows.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 20:51:58 +00:00
Love Hörnquist Åstrand
2ca0d5a961 (krb5_rd_req_ctx): The code failed to consider the enc_tkt_in_skey
case, from Douglas E. Engert.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-15 22:40:42 +00:00
Love Hörnquist Åstrand
a84be6224b (krb5_rd_req_ctx): Use the correct keyblock when verifying the PAC.
From Andrew Bartlett.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 12:10:17 +00:00
Love Hörnquist Åstrand
a03b0ce550 Make it possible to turn off PAC check, its default on.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:27:20 +00:00
Love Hörnquist Åstrand
c8c4c730ac (krb5_rd_req_ctx): If there is a PAC, verify its server signature.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:23:34 +00:00
Love Hörnquist Åstrand
a04ab012c3 Add more krb5_rd_req_out_get functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 17:11:31 +00:00
Love Hörnquist Åstrand
3c84029aba (krb5_rd_req_ctx): Add context all singing-all dancing version of the
krb5_rd_req and implement krb5_rd_req and krb5_rd_req_with_keyblock
using it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 00:13:58 +00:00