diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/crypto/arcfour/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lib/crypto/arcfour/string_to_key.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/crypto/arcfour/ChangeLog b/src/lib/crypto/arcfour/ChangeLog index fb5968b83..74647d521 100644 --- a/src/lib/crypto/arcfour/ChangeLog +++ b/src/lib/crypto/arcfour/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/src/lib/crypto/arcfour/string_to_key.c b/src/lib/crypto/arcfour/string_to_key.c index 23bebca80..a40f1ff34 100644 --- a/src/lib/crypto/arcfour/string_to_key.c +++ b/src/lib/crypto/arcfour/string_to_key.c @@ -2,7 +2,7 @@ #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++) { @@ -18,7 +18,7 @@ krb5_arcfour_string_to_key(enc, string, salt, key) krb5_const krb5_data *salt; krb5_keyblock *key; { - int len,slen; + size_t len,slen; unsigned char *copystr; krb5_MD4_CTX md4_context; @@ -37,7 +37,7 @@ krb5_arcfour_string_to_key(enc, string, salt, key) slen = ((string->length)>128)?128:string->length; len=(slen)*2; - copystr = malloc((size_t) len); + copystr = malloc(len); if (copystr == NULL) return ENOMEM; |
