X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshcrc.c;h=ed20395b7247d73fc515929971056df048d8da18;hb=6e40a0db57993407da9f0690c2f05fc4a21f5bae;hp=691f7b4ec901267f171fc096de0689f9733f4cb6;hpb=d2377735994b87f99f994ad0ef04b85845bb854d;p=PuTTY.git diff --git a/sshcrc.c b/sshcrc.c index 691f7b4e..ed20395b 100644 --- a/sshcrc.c +++ b/sshcrc.c @@ -69,17 +69,19 @@ #include +#include "ssh.h" + /* ---------------------------------------------------------------------- * Multi-function module. Can be compiled three ways. * * - Compile with no special #defines. Will generate a table * that's already initialised at compile time, and one function - * crc32(buf,len) that uses it. Normal usage. + * crc32_compute(buf,len) that uses it. Normal usage. * * - Compile with INITFUNC defined. Will generate an uninitialised - * array as the table, and as well as crc32(buf,len) it will - * also generate void crc32_init(void) which sets up the table - * at run time. Useful if binary size is important. + * array as the table, and as well as crc32_compute(buf,len) it + * will also generate void crc32_init(void) which sets up the + * table at run time. Useful if binary size is important. * * - Compile with GENPROGRAM defined. Will create a standalone * program that does the initialisation and outputs the table as @@ -222,7 +224,7 @@ unsigned long crc32_update(unsigned long crcword, const void *buf, size_t len) return crcword; } -unsigned long crc32(const void *buf, size_t len) +unsigned long crc32_compute(const void *buf, size_t len) { return crc32_update(0L, buf, len); }