Stefan Metzmacher c98d9f4387 kdc: fix comparision between krb5uint32 and (unsigned int)
We don't need a cast in that case.

Before commit 1124c4872d
(KVNOs are krb5uint32 in RFC4120, make it so),
we compared krb5int32 casted to size_t with unsigned int,
which resulted in the following problem:

Casting krb5int32 to (size_t) is wrong, as sizeof(int)==4 != sizeof(size_t)== 8.

If you cast negative int values to size_t you'll get this:

int ival = -5000; // 0xFFFFEC78
size_t sval = (size_t)ival; // this will be 0xFFFFFFFFFFFFEC78

So we better compare while casting to (unsigned int).

This is important for Active Directory RODC support,
which adds a random number into the higher 16-bits of the
32-bit kvno value.

metze

Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
2011-07-30 11:57:01 -07:00
2011-07-23 11:18:21 -07:00
2011-07-24 15:46:11 -07:00
2011-07-23 09:22:51 -07:00
2011-07-22 16:07:05 -05:00
2008-12-11 05:11:34 +00:00
2011-07-27 20:04:31 -04:00
2011-04-01 01:12:46 -07:00
2004-02-12 14:19:16 +00:00
2011-05-22 20:47:32 -07:00
2000-06-07 10:01:25 +00:00
2002-08-21 13:29:08 +00:00
2011-07-23 12:08:37 -07:00
1998-08-14 12:05:21 +00:00
2011-03-13 16:54:43 -07:00
2011-05-31 20:25:33 -07:00
2009-09-27 18:26:54 -07:00
2010-01-05 19:21:45 +01:00

Heimdal is a Kerberos 5 implementation.

For information how to install see <http://www.h5l.org/compile.html>.

There are briefer man pages for most of the commands.

Bug reports and bugs are appreciated, see more under Bug reports in
the manual on how we prefer them: <heimdal-bugs@h5l.org>.

For more information see the web-page at
<http://www.h5l.org/> or the mailing lists:

heimdal-announce@sics.se	low-volume announcement
heimdal-discuss@sics.se		high-volume discussion

send a mail to heimdal-announce-request@sics.se and
heimdal-discuss-request@sics.se respectively to subscribe.
Languages
C 92.1%
Roff 2.8%
Shell 2.3%
Makefile 0.7%
M4 0.5%
Other 1.4%