mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
Test changes in net_com.c for bad connects...
This commit is contained in:
parent
4abffbc7bb
commit
c2827bb3d7
1 changed files with 11 additions and 2 deletions
|
@ -32,8 +32,12 @@ unsigned Com_BlockChecksum (void *buffer, int length)
|
|||
{
|
||||
int digest[4];
|
||||
unsigned val;
|
||||
struct mdfour md;
|
||||
|
||||
mdfour ( (unsigned char *) digest, (unsigned char *) buffer, length );
|
||||
mdfour_begin (&md);
|
||||
mdfour_update (&md, (unsigned char *) buffer, length);
|
||||
mdfour_result (&md, (unsigned char *) digest);
|
||||
// mdfour ( (unsigned char *) digest, (unsigned char *) buffer, length );
|
||||
|
||||
val = digest[0] ^ digest[1] ^ digest[2] ^ digest[3];
|
||||
|
||||
|
@ -42,5 +46,10 @@ unsigned Com_BlockChecksum (void *buffer, int length)
|
|||
|
||||
void Com_BlockFullChecksum (void *buffer, int len, unsigned char *outbuf)
|
||||
{
|
||||
mdfour ( outbuf, (unsigned char *) buffer, len );
|
||||
struct mdfour md;
|
||||
|
||||
mdfour_begin (&md);
|
||||
mdfour_update (&md, (unsigned char *) buffer, len);
|
||||
mdfour_final (&md, outbuf);
|
||||
// mdfour ( outbuf, (unsigned char *) buffer, len );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue