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
f538f0e5c2
krb5: use new krb5_time_abs() function
...
From Apple Heimdal-597.121.1: replace calls to labs() with krb5_time_abs()
2021-08-09 21:46:39 +10:00
Jeffrey Altman
6f3ab01c75
check return copy_Realm, copy_PrincipalName, copy_EncryptionKey
...
The ASN.1 functions copy_Realm(), copy_PrincipalName() and
copy_EncryptionKey() can fail. Check the return and perform error
handling as appropriate.
Change-Id: I2b3629d19db96eb41d1cd554cef1dca99745e753
2017-04-29 15:24:42 -04:00
Nicolas Williams
b4cf4de807
Fix warnings (clang 3.6)
2016-02-26 01:04:31 -06: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
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -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 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
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
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
920402bc6b
N_()ify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23794 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:31:50 +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
5a82a6ed43
use krb5_set_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:29:47 +00:00
Love Hörnquist Åstrand
1dda5d8b5f
clear error string.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-11 11:15:05 +00:00
Love Hörnquist Åstrand
42f57ce1d7
Plug memory leak, from Michael B Allen.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20195 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-07 20:04:15 +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
529acecb2b
(krb5_rd_cred): don't expose freed pointer, found by IBM checker.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 02:27:33 +00:00
Love Hörnquist Åstrand
1305bbe9d5
(krb5_rd_cred): avoid a memory leak on malloc failure, found by IBM checker.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:31:10 +00:00
Love Hörnquist Åstrand
52bb24b476
s/RFC2140/RFC4120/ From Andrew Bartlet
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:36:42 +00:00
Love Hörnquist Åstrand
f0bf8a5c1e
(krb5_rd_cred): try both the session key and the sender subkey. Both
...
RFC1510 and RFC4120 say that you have to use the session key, Heimdal
uses subkey.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-23 03:37:57 +00:00
Love Hörnquist Åstrand
d9eb674e71
(krb5_rd_cred): don't leak memory
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15643 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 08:22:50 +00:00
Love Hörnquist Åstrand
dcf2713a1d
(krb5_rd_cred): remove shadowing unnessecery variable len
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 04:31:48 +00:00
Johan Danielsson
82fa25b5c4
put address comparison in separate function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-04 12:25:04 +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
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
Johan Danielsson
4297f56e60
implement RET_SEQUENCE and RET_TIME
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-25 16:59:52 +00:00
Johan Danielsson
ddc308c36f
use ASN1_MALLOC_ENCODE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 16:26:05 +00:00
Johan Danielsson
8630bd9dc8
if the remote address isn't an addrport, don't try comparing to one;
...
this should make old clients work with new servers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11073 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-09 17:07:12 +00:00
Assar Westerlund
d3de2e1062
handle addresses with port numbers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10872 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:15:24 +00:00
Assar Westerlund
f6d6c648dd
(krb5_rd_cred): check calloc return value
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-29 14:53:44 +00:00
Assar Westerlund
d27aa3b62e
add some krb5_{set,clear}_error_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Johan Danielsson
499f690a38
set ret_creds to NULL before doing anything else, from Jacques Vidrine
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9794 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-19 16:36:03 +00:00
Johan Danielsson
9a756dba9f
make this match the MIT function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-04 16:19:00 +00:00
Assar Westerlund
accdd87f82
check return value from krb5_crypto_init
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-18 06:50:26 +00:00
Assar Westerlund
23490da719
be more compatible with MIT code. From Daniel Kouril
...
<kouril@ics.muni.cz >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8428 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 02:20:04 +00:00
Assar Westerlund
209565763c
update to new prototype of krb5_timeofday
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:20:51 +00:00
Johan Danielsson
c5b916ca6f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
8a80d1a936
(krb5_rd_cred): compare the sender's address as an addrport one
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6376 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:19:51 +00:00
Johan Danielsson
aaae186ab9
merge new-crypto branch
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Johan Danielsson
5055bfb3b7
Use krb5_decode_EncKrbCredPart.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4366 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-31 16:34:34 +00:00
Johan Danielsson
259d89264a
changes for modified auth_context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4156 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-07 15:43:18 +00:00
Assar Westerlund
7de203cee4
foo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4022 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 09:50:12 +00:00
Assar Westerlund
6fd5ea4f86
use krb5_timeofday and krb5_us_timeofday
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2927 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 23:35:31 +00:00
Assar Westerlund
1ce99275a7
new files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2553 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 05:56:43 +00:00