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

md4glue.c: put function prototypes back in.

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

src/lib/crypto/md4/ChangeLog
src/lib/crypto/md4/md4crypto.c
src/lib/crypto/md4/md4glue.c

index 9fdbe69053f68b73a8dfafb7dc3956c6f4f502ed..97b5afe3e0a2e7ecc391ba5fa66506c086bb087a 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 13 10:30:58 1995 Keith Vetter (keithv@fusion.com)
+
+       * md4crypt.c: put function prototype back in, fixed signed/unsigned
+               mismatch and removed unused variables.
+       * md4glue.c: put function prototypes back in.
+
 Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
 
         * md4crypto.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
index 5b349a0241393375a1fe66ae68a3766c4f4d9cc0..a2542c17e61a5dcb34d86e5d5a5aafc4bee8b565 100644 (file)
 #include "rsa-md4.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
+md4_crypto_sum_func PROTOTYPE((krb5_pointer in, size_t in_length,
+    krb5_pointer seed, size_t seed_length, krb5_checksum *outcksum));
+
+krb5_error_code
+md4_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-MD4-DES implementation
  * did not follow RFC1510.  The folowing definitions control the compatibility
@@ -128,7 +138,7 @@ krb5_checksum FAR *outcksum;
     krb5_encrypt_block eblock;
     krb5_keyblock keyblock;
     krb5_error_code retval;
-    int i;
+    size_t i;
 
     MD4_CTX working;
 
@@ -191,14 +201,12 @@ size_t seed_length;
 {
     krb5_octet outtmp[RSA_MD4_DES_CKSUM_LENGTH+
                      RSA_MD4_DES_CONFOUND_LENGTH];
-    krb5_octet outtmp1[RSA_MD4_DES_CKSUM_LENGTH+
-                     RSA_MD4_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;
 
     MD4_CTX working;
 
index cc6bd03aa1852ec9c81b5f9d1be2c9e9cbf5f1ca..3af2f09f0b3dc05cd273a4386f1a143674af6542 100644 (file)
 #include "k5-int.h"
 #include "rsa-md4.h"
 
+/* Windows needs to these prototypes for the assignment below */
+
+krb5_error_code
+md4_sum_func PROTOTYPE((krb5_pointer in, size_t in_length,
+    krb5_pointer seed, size_t seed_length, krb5_checksum *outcksum));
+
+krb5_error_code
+md4_verify_func PROTOTYPE((krb5_checksum FAR *cksum, krb5_pointer in,
+       size_t in_length, krb5_pointer seed, size_t seed_length));
+
 krb5_error_code
 md4_sum_func(in, in_length, seed, seed_length, outcksum)
 krb5_pointer in;