crc_{init_table,update} -> _krb5_crc_{init_table,update}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5803 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -40,15 +40,12 @@
|
|||||||
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "crc.h"
|
|
||||||
|
|
||||||
static u_long table[256];
|
static u_long table[256];
|
||||||
|
|
||||||
#define CRC_GEN 0xEDB88320L
|
#define CRC_GEN 0xEDB88320L
|
||||||
|
|
||||||
void
|
void
|
||||||
crc_init_table(void)
|
_krb5_crc_init_table(void)
|
||||||
{
|
{
|
||||||
static int flag = 0;
|
static int flag = 0;
|
||||||
unsigned long crc, poly;
|
unsigned long crc, poly;
|
||||||
@@ -71,7 +68,7 @@ crc_init_table(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
u_int32_t
|
u_int32_t
|
||||||
crc_update (char *p, size_t len, u_int32_t res)
|
_krb5_crc_update (char *p, size_t len, u_int32_t res)
|
||||||
{
|
{
|
||||||
while (len--)
|
while (len--)
|
||||||
res = table[(res ^ *p++) & 0xFF] ^ (res >> 8);
|
res = table[(res ^ *p++) & 0xFF] ^ (res >> 8);
|
||||||
|
Reference in New Issue
Block a user