From: John Gilmore Date: Thu, 26 Jan 1995 04:06:12 +0000 (+0000) Subject: * crc-32.h: New file, moved from include/krb5/crc-32.h. X-Git-Tag: krb5-1.0-beta5~808 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e28b074ca2d7c569130204e38bff22e0460d3ed8;p=krb5.git * crc-32.h: New file, moved from include/krb5/crc-32.h. * crc.c, crctest.c: Replace <.../...> includes with "..."s. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4847 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/crc32/ChangeLog b/src/lib/crypto/crc32/ChangeLog index 11b432714..a33322ef1 100644 --- a/src/lib/crypto/crc32/ChangeLog +++ b/src/lib/crypto/crc32/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 25 20:01:33 1995 John Gilmore (gnu at toad.com) + + * crc-32.h: New file, moved from include/krb5/crc-32.h. + * crc.c, crctest.c: Replace <.../...> includes with "..."s. + Wed Oct 19 12:27:16 1994 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: Don't use LDFLAGS, but CCFLAGS since CCFLAGS is diff --git a/src/lib/crypto/crc32/crc-32.h b/src/lib/crypto/crc32/crc-32.h new file mode 100644 index 000000000..28d0dc451 --- /dev/null +++ b/src/lib/crypto/crc32/crc-32.h @@ -0,0 +1,35 @@ +/* + * include/krb5/crc-32.h + * + * Copyright 1989,1990 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + * + * + * Definitions for the CRC-32 checksum + */ + + +#ifndef KRB5_CRC32__ +#define KRB5_CRC32__ + +#define CRC32_CKSUM_LENGTH (4*sizeof(krb5_octet)) + +extern krb5_checksum_entry crc32_cksumtable_entry; + +#endif /* KRB5_CRC32__ */ diff --git a/src/lib/crypto/crc32/crc.c b/src/lib/crypto/crc32/crc.c index 5321108b4..28dd15d1c 100644 --- a/src/lib/crypto/crc32/crc.c +++ b/src/lib/crypto/crc32/crc.c @@ -24,10 +24,8 @@ * CRC-32/AUTODIN-II routines */ - -#include -#include -#include +#include "k5-int.h" +#include "crc-32.h" /* This table and block of comments are taken from code labeled: */ /* diff --git a/src/lib/crypto/crc32/crctest.c b/src/lib/crypto/crc32/crctest.c index cacfa2171..25b97dae8 100644 --- a/src/lib/crypto/crc32/crctest.c +++ b/src/lib/crypto/crc32/crctest.c @@ -25,8 +25,8 @@ */ -#include -#include +#include "k5-int.h" +#include "crc-32.h" #include void