md5crypt.c: put function prototype back in, fixed signed/unsigned
authorTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 00:20:59 +0000 (00:20 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 00:20:59 +0000 (00:20 +0000)
mismatch and removed unused variables.

md5glue.c: put function prototypes back in.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6820 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/md5/ChangeLog
src/lib/crypto/md5/md5crypto.c
src/lib/crypto/md5/md5glue.c

index 383ac7c890a93620ec013cac50c4a957ba599d67..5c23103d40fe077dbc703b940af8e5229ec84401 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 13 10:30:58 1995 Keith Vetter (keithv@fusion.com)
+
+       * md5crypt.c: put function prototype back in, fixed signed/unsigned
+               mismatch and removed unused variables.
+       * md5glue.c: put function prototypes back in.
+
 Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
 
         * md5crypto.c, t_cksum.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
index 0c2c49c0d4d0ba433bffdfca003b4b3942099eaa..4689bfcf1ab83dd33694f5c8b8655bd89b4ab2df 100644 (file)
@@ -2,6 +2,16 @@
 #include "rsa-md5.h"
 #include "des_int.h"   /* we cheat a bit and call it directly... */
 
+/* Windows needs to these prototypes for the assignment below */
+
+krb5_error_code
+md5_crypto_sum_func PROTOTYPE((krb5_pointer in, size_t in_length,
+       krb5_pointer seed, size_t seed_length, krb5_checksum FAR *outcksum));
+
+krb5_error_code
+md5_crypto_verify_func PROTOTYPE((krb5_checksum FAR *cksum, krb5_pointer in,
+       size_t in_length, krb5_pointer seed, size_t seed_length));
+
 /*
  * In Kerberos V5 Beta 5 and previous releases the RSA-MD5-DES implementation
  * did not follow RFC1510.  The folowing definitions control the compatibility
@@ -95,7 +105,7 @@ krb5_checksum FAR *outcksum;
     krb5_encrypt_block eblock;
     krb5_keyblock keyblock;
     krb5_error_code retval;
-    int i;
+    size_t i;
 
     MD5_CTX working;
 
@@ -158,14 +168,12 @@ size_t seed_length;
 {
     krb5_octet outtmp[RSA_MD5_DES_CKSUM_LENGTH+
                      RSA_MD5_DES_CONFOUND_LENGTH];
-    krb5_octet outtmp1[RSA_MD5_DES_CKSUM_LENGTH+
-                     RSA_MD5_DES_CONFOUND_LENGTH];
     mit_des_cblock     tmpkey;
     krb5_octet *input = (krb5_octet *)in;
     krb5_encrypt_block eblock;
     krb5_keyblock keyblock;
     krb5_error_code retval;
-    int i;
+    size_t i;
 
     MD5_CTX working;
 
index afaa721fc79ad7c32f89baf8dbd7b247cc5f7581..d23a72f029d2beaf692d8aa1234f415c89ae6ea9 100644 (file)
@@ -1,6 +1,16 @@
 #include "k5-int.h"
 #include "rsa-md5.h"
 
+/* Windows needs to these prototypes for the assignment below */
+
+krb5_error_code
+md5_sum_func PROTOTYPE((krb5_pointer in, size_t in_length,
+    krb5_pointer seed, size_t seed_length, krb5_checksum *outcksum));
+
+krb5_error_code
+md5_verify_func PROTOTYPE((krb5_checksum FAR *cksum, krb5_pointer in,
+       size_t in_length, krb5_pointer seed, size_t seed_length));
+
 krb5_error_code
 md5_sum_func(in, in_length, seed, seed_length, outcksum)
 krb5_pointer in;