summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/crc32
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-03-15 01:57:23 +0000
committerKeith Vetter <keithv@fusion.com>1995-03-15 01:57:23 +0000
commit26bcae14eec6b4392500ecb144e345b2948ef544 (patch)
tree1712bd35d85d6e87bd711fe768ef60c43a1a0b6e /src/lib/crypto/crc32
parentc61811b52dbd314e051292f4ba1f14fc1d1fb003 (diff)
downloadkrb5-26bcae14eec6b4392500ecb144e345b2948ef544.tar.gz
krb5-26bcae14eec6b4392500ecb144e345b2948ef544.tar.xz
krb5-26bcae14eec6b4392500ecb144e345b2948ef544.zip
Two changes in the crypto directory: 1) 16 vs 32 bit errors in DES and 2)
removed crud for making a DLL (will be done at a higher level.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5123 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/crc32')
-rw-r--r--src/lib/crypto/crc32/ChangeLog5
-rw-r--r--src/lib/crypto/crc32/crc.c16
2 files changed, 7 insertions, 14 deletions
diff --git a/src/lib/crypto/crc32/ChangeLog b/src/lib/crypto/crc32/ChangeLog
index f439d8e52..1b8f3eae6 100644
--- a/src/lib/crypto/crc32/ChangeLog
+++ b/src/lib/crypto/crc32/ChangeLog
@@ -1,3 +1,8 @@
+Tue Mar 14 17:20:47 1995 Keith Vetter (keithv@fusion.com)
+
+ * crc.c: removed method for pulling in a data structure (windows),
+ and turned an int into a size_t for corrected 'signed'ness.
+
Fri Mar 3 19:01:59 1995 Keith Vetter (keithv@fusion.com)
* crc.c: added a method to pull in a data structure
diff --git a/src/lib/crypto/crc32/crc.c b/src/lib/crypto/crc32/crc.c
index a6966630f..cb41e1734 100644
--- a/src/lib/crypto/crc32/crc.c
+++ b/src/lib/crypto/crc32/crc.c
@@ -158,10 +158,10 @@ krb5_checksum FAR *outcksum;
register u_char *data;
register u_long c = 0;
register int idx;
- int i;
+ size_t i;
data = (u_char *)in;
- for (i=0; i < (int) in_length;i++) {
+ for (i = 0; i < in_length; i++) {
idx = (int) (data[i] ^ c);
idx &= 0xff;
c >>= 8;
@@ -185,15 +185,3 @@ krb5_checksum_entry crc32_cksumtable_entry = {
0, /* not collision proof */
0, /* doesn't use key */
};
-
-#if defined(_WINDOWS)
-/*
-** Windows can't pull in data from a DLL library. So we must provide a
-** method to do so. If the crypto library is merged in with the other
-** libraries, and this never gets called by an end-user, then we
-** can get rid of this.
-*/
-krb5_checksum_entry * INTERFACE load_crc32_cksumtable_entry (void) {
- return &crc32_cksumtable_entry;
-}
-#endif