(main): Free allocated memory before exit.
* t_nfold.c (fold_kerberos): Change nbytes argument to unsigned.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16358
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-05-24 Ezra Peisach <epeisach@mit.edu>
+
+ * t_nfold.c (fold_kerberos): Change nbytes argument to unsigned.
+
+ * t_encrypt.c (compare_results): Declare static.
+ (main): Free allocated memory before exit.
+
2004-05-13 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (t_encrypt, t_prng, t_hmac, t_pkcs5, vectors,
abort(); \
} else printf ("OK\n");
-int compare_results(krb5_data *d1, krb5_data *d2)
+static int compare_results(krb5_data *d1, krb5_data *d2)
{
if (d1->length != d2->length) {
/* Decryption can leave a little trailing cruft.
}
free(out.data);
+ free(out2.data);
free(check.data);
+ free(check2.data);
return 0;
}
}
}
-static void fold_kerberos(int nbytes)
+static void fold_kerberos(unsigned int nbytes)
{
unsigned char cipher_text[300];
int j;
abort();
printf("%d-fold(\"kerberos\") =\n\t", nbytes*8);
- krb5_nfold(64, "kerberos", 8*nbytes, cipher_text);
+ krb5_nfold(64, (unsigned char *) "kerberos", 8*nbytes, cipher_text);
for (j=0; j<nbytes; j++)
printf("%s%02x", (j&3) ? "" : " ", cipher_text[j]);
printf("\n");