summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-12-05 23:30:25 +0000
committerEzra Peisach <epeisach@mit.edu>2001-12-05 23:30:25 +0000
commit58db6dc9eef552f8e1736506eeac38e05b50f0c3 (patch)
treeccc263965ec230288e9b836c6b1ee92cf7974f39 /src
parent91a7b5132eeea7d95678dbc266bd4a07524c31a4 (diff)
downloadkrb5-58db6dc9eef552f8e1736506eeac38e05b50f0c3.tar.gz
krb5-58db6dc9eef552f8e1736506eeac38e05b50f0c3.tar.xz
krb5-58db6dc9eef552f8e1736506eeac38e05b50f0c3.zip
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14049 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/crypto/arcfour/ChangeLog6
-rw-r--r--src/lib/crypto/arcfour/string_to_key.c6
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;