Fixes for code merge
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3604 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -69,7 +69,7 @@ md4_init (struct md4 *m)
|
||||
}
|
||||
|
||||
static u_int32_t
|
||||
cshift (u_int32_t x, unsigned n)
|
||||
cshift (u_int32_t x, unsigned int n)
|
||||
{
|
||||
return (x << n) | (x >> (32 - n));
|
||||
}
|
||||
@@ -228,7 +228,7 @@ md4_finito (struct md4 *m, void *res)
|
||||
{
|
||||
static u_char zeros[72];
|
||||
u_int32_t len;
|
||||
unsigned dstart = (120 - m->offset - 1) % 64 + 1;
|
||||
unsigned int dstart = (120 - m->offset - 1) % 64 + 1;
|
||||
|
||||
*zeros = 0x80;
|
||||
memset (zeros + 1, 0, sizeof(zeros) - 1);
|
||||
|
@@ -45,11 +45,15 @@
|
||||
#ifdef HAVE_SYS_BITYPES_H
|
||||
#include <sys/bitypes.h>
|
||||
#endif
|
||||
#ifdef KRB5
|
||||
#include <krb5-types.h>
|
||||
#elif defined(KRB4)
|
||||
#include <ktypes.h>
|
||||
#endif
|
||||
|
||||
struct md4 {
|
||||
unsigned offset;
|
||||
unsigned sz;
|
||||
unsigned int offset;
|
||||
unsigned int sz;
|
||||
u_int32_t counter[4];
|
||||
unsigned char save[64];
|
||||
};
|
||||
|
@@ -69,7 +69,7 @@ md5_init (struct md5 *m)
|
||||
}
|
||||
|
||||
static inline u_int32_t
|
||||
cshift (u_int32_t x, unsigned n)
|
||||
cshift (u_int32_t x, unsigned int n)
|
||||
{
|
||||
return (x << n) | (x >> (32 - n));
|
||||
}
|
||||
@@ -250,9 +250,9 @@ md5_update (struct md5 *m, const void *v, size_t len)
|
||||
void
|
||||
md5_finito (struct md5 *m, void *res)
|
||||
{
|
||||
static u_char zeros[72];
|
||||
static unsigned char zeros[72];
|
||||
u_int32_t len;
|
||||
unsigned dstart = (120 - m->offset - 1) % 64 + 1;
|
||||
unsigned int dstart = (120 - m->offset - 1) % 64 + 1;
|
||||
|
||||
*zeros = 0x80;
|
||||
memset (zeros + 1, 0, sizeof(zeros) - 1);
|
||||
|
@@ -45,11 +45,15 @@
|
||||
#ifdef HAVE_SYS_BITYPES_H
|
||||
#include <sys/bitypes.h>
|
||||
#endif
|
||||
#ifdef KRB5
|
||||
#include <krb5-types.h>
|
||||
#elif defined(KRB4)
|
||||
#include <ktypes.h>
|
||||
#endif
|
||||
|
||||
struct md5 {
|
||||
unsigned offset;
|
||||
unsigned sz;
|
||||
unsigned int offset;
|
||||
unsigned int sz;
|
||||
u_int32_t counter[4];
|
||||
unsigned char save[64];
|
||||
};
|
||||
|
@@ -71,7 +71,7 @@ sha_init (struct sha *m)
|
||||
}
|
||||
|
||||
static inline u_int32_t
|
||||
cshift (u_int32_t x, unsigned n)
|
||||
cshift (u_int32_t x, unsigned int n)
|
||||
{
|
||||
return (x << n) | (x >> (32 - n));
|
||||
}
|
||||
@@ -276,7 +276,7 @@ sha_finito (struct sha *m, void *res)
|
||||
{
|
||||
static unsigned char zeros[72];
|
||||
u_int32_t len;
|
||||
unsigned dstart = (120 - m->offset - 1) % 64 + 1;
|
||||
unsigned int dstart = (120 - m->offset - 1) % 64 + 1;
|
||||
|
||||
*zeros = 0x80;
|
||||
memset (zeros + 1, 0, sizeof(zeros) - 1);
|
||||
|
@@ -45,11 +45,15 @@
|
||||
#ifdef HAVE_SYS_BITYPES_H
|
||||
#include <sys/bitypes.h>
|
||||
#endif
|
||||
#ifdef KRB5
|
||||
#include <krb5-types.h>
|
||||
#elif defined(KRB4)
|
||||
#include <ktypes.h>
|
||||
#endif
|
||||
|
||||
struct sha {
|
||||
unsigned offset;
|
||||
unsigned sz;
|
||||
unsigned int offset;
|
||||
unsigned int sz;
|
||||
u_int32_t counter[5];
|
||||
unsigned char save[64];
|
||||
};
|
||||
|
Reference in New Issue
Block a user