of int for local variable.
(asctouni): Length argument now size_t instead of int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14049
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-12-05 Ezra Peisach <epeisach@mit.edu>
+
+ * string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead
+ of int for local variable.
+ (asctouni): Length argument now size_t instead of int.
+
2001-11-07 Sam Hartman <hartmans@mit.edu>
* arcfour.c (krb5_arcfour_encrypt): Set output length
#include "rsa-md4.h"
#include "arcfour-int.h"
-static void asctouni(unsigned char *unicode, unsigned char *ascii, int len)
+static void asctouni(unsigned char *unicode, unsigned char *ascii, size_t len)
{
int counter;
for (counter=0;counter<len;counter++) {
krb5_const krb5_data *salt;
krb5_keyblock *key;
{
- int len,slen;
+ size_t len,slen;
unsigned char *copystr;
krb5_MD4_CTX md4_context;
slen = ((string->length)>128)?128:string->length;
len=(slen)*2;
- copystr = malloc((size_t) len);
+ copystr = malloc(len);
if (copystr == NULL)
return ENOMEM;