summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/crypto/ChangeLog6
-rw-r--r--src/lib/crypto/nfold.c4
-rw-r--r--src/lib/crypto/prng.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog
index d47798582..76aec91ed 100644
--- a/src/lib/crypto/ChangeLog
+++ b/src/lib/crypto/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-17 Ezra Peisach <epeisach@mit.edu>
+
+ * nfold.c (krb5_nfold): inbots and outbits are now unsigned int.
+
+ * prng.c: Local variable random_count is now unsigned int.
+
2000-06-30 Ezra Peisach <epeisach@mit.edu>
* crypto_libinit.c: Add prototype for prng_cleanup().
diff --git a/src/lib/crypto/nfold.c b/src/lib/crypto/nfold.c
index 9c1fe2686..d9bc804a1 100644
--- a/src/lib/crypto/nfold.c
+++ b/src/lib/crypto/nfold.c
@@ -47,9 +47,9 @@ n-fold(k-bits):
void
krb5_nfold(inbits, in, outbits, out)
- int inbits;
+ unsigned int inbits;
krb5_const unsigned char *in;
- int outbits;
+ unsigned int outbits;
unsigned char *out;
{
int a,b,c,lcm;
diff --git a/src/lib/crypto/prng.c b/src/lib/crypto/prng.c
index 78075a3f1..c89bc8b19 100644
--- a/src/lib/crypto/prng.c
+++ b/src/lib/crypto/prng.c
@@ -44,7 +44,7 @@ static const struct krb5_enc_provider *const enc = &krb5_enc_des;
static int inited = 0;
static size_t blocksize, keybytes, keylength;
-static int random_count;
+static unsigned int random_count;
/* keybytes | state-block | encblock | key | new-keybytes | new-state-block */
static unsigned char *random_state;
#define STATE (random_state)