Taylor R Campbell
35688d030f
krb5/get_in_tkt.c: Sprinkle const on global data never changed.
2023-06-20 12:19:48 -05:00
Jeffrey Altman
1685c34b0d
remove (krb5_enctype) cast for ETYPE_xxx
...
Now that ETYPE_xxx names are macros to the KRB5_ENCTYPE_xxx
symbols there is no longer a need to cast to (krb5_enctype).
Change-Id: Ib561f6e45346abac7a53eb1db0bfef60ee3bcb74
2022-01-15 22:05:50 -05:00
Luke Howard
014e318d6b
krb5: check KDC supports anonymous if requested
...
Verify the KDC recognized the request-anonymous flag by validating the returned
client principal name.
2019-05-18 20:31:52 -04:00
Roland C. Dowdeswell
a39bd42576
Remove #if 0'd code.
...
This is a slightly different fix than that proposed in Pull Request #151 .
2017-03-09 14:12:39 -05:00
Roland C. Dowdeswell
f0f07ff408
Use krb5_enomem() more consistently in lib/krb5.
2013-02-13 16:15:00 +08: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
Love Hornquist Astrand
adf772865c
new use of _krb5_extract_ticket
2011-07-24 20:24:38 -07:00
Love Hörnquist Åstrand
f60ec15834
partly unify enctype/keytype since there is only enctypes
2011-07-24 14:03:08 -07:00
Love Hörnquist Åstrand
0f489b7b28
unexport krb5_init_etype, remove duplicate code
2011-06-14 21:08:52 -07:00
Nicolas Williams
2fbad6432b
Initial support for default_{as, tgs}_etypes.
...
Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org >
2011-06-14 20:35:19 -07:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
305596d9ad
Rename subsystem_DEPRECATED to subsystem_DEPRECATED_FUNCTION(X)
...
Start to explain what the replacement function is.
Generate the #define/#undef logic in generated header files.
Use gcc style where the deprecation warning is after the prototype.
2011-05-17 23:12:51 -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
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
Love Hornquist Astrand
687db64c56
Patch from Secure Endpoints/Asanka Herath for windows support
2009-12-21 08:45:28 +01:00
Love Hornquist Astrand
eba120e8ce
support EXTRACT_TICKET_TIMESYNC
2009-11-22 12:26:40 -08: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
393b5824ce
catch error code
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:31:21 +00:00
Love Hörnquist Åstrand
ea246c7ec1
use KRB5_DEPRECATED
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24306 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:52:47 +00:00
Love Hörnquist Åstrand
1b4c9c2d3c
use KRB5_DEPRECATED
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:51:18 +00:00
Love Hörnquist Åstrand
c4609275b0
move _krb5_extract_ticket to ticket.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24296 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:51:09 +00:00
Love Hörnquist Åstrand
4fcad03fb8
remove krb5_init_etype
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:50:49 +00:00
Love Hörnquist Åstrand
731f131f32
Make heimdal smaller and deprecate old functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24175 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:12:42 +00:00
Love Hörnquist Åstrand
ad71a4584b
remove const-ness to please coverity
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24088 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:25 +00:00
Love Hörnquist Åstrand
329b5e292b
use the asn1 decoder directly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:52:50 +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
0452a291c1
N_()ify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:18:04 +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
bc6c342a5d
use krb5_set_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23283 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:26:49 +00:00
Love Hörnquist Åstrand
d46e99e899
Use unsigned where appropriate.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22866 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:12 +00:00
Love Hörnquist Åstrand
2dd8a03423
Make server referral work.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:55 +00:00
Love Hörnquist Åstrand
090f16f717
better error message, try to handle server referrals slightly better.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:51 +00:00
Love Hörnquist Åstrand
5d35e96f9f
check no server referral, don't use stringent length tests since
...
encryption layer does padding for us...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:32 +00:00
Love Hörnquist Åstrand
d3d7661043
More bits for server referral.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:05 +00:00
Love Hörnquist Åstrand
e1cb28d159
Make working with client referrals.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:01 +00:00
Love Hörnquist Åstrand
c3e55c1f54
Try moving referrals checking into _krb5_extract_ticket().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22740 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:34 +00:00
Love Hörnquist Åstrand
dc0a5d69f2
Use EXTRACT_TICKET_* flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-16 03:31:50 +00:00
Love Hörnquist Åstrand
c7b54c3372
Adapt to signature change of _krb5_principalname2krb5_principal.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-06 17:06:30 +00:00
Love Hörnquist Åstrand
e0645d20a6
Make compile.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-02 11:57:36 +00:00
Love Hörnquist Åstrand
204118e4d1
Always use the kdc_flags in the right bit order.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-02 11:54:45 +00:00
Love Hörnquist Åstrand
625f4bf27f
rename index to i to avoid shadowing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-15 02:53:20 +00:00
Love Hörnquist Åstrand
69b55bfa0b
use private version of principalname
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14423 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-29 18:56:43 +00:00
Love Hörnquist Åstrand
00fd1e3851
(krb5_get_in_cred): clear pointer after freeing data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-13 21:08:17 +00:00
Love Hörnquist Åstrand
8190ec78b2
(set_ptypes): make ptypes const
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-02 18:41:51 +00:00
Love Hörnquist Åstrand
91351971f7
add KRB5_LIB_FUNCTION to all exported functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Love Hörnquist Åstrand
a74d87717c
(krb5_get_in_cred): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:03:42 +00:00
Love Hörnquist Åstrand
70f79440e5
(init_as_req): don't realloc data before the loop, add_padata() will
...
handle that itself
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:38:59 +00:00
Love Hörnquist Åstrand
bc32f47208
(krb5_get_in_tkt): for compatibility with with the mit implemtation,
...
don't free `creds' argument when done, its up the the caller to do
that, also allow a NULL ccache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 15:52:01 +00:00