More size_tification.

This commit is contained in:
Ben Laurie
2008-11-01 16:40:37 +00:00
parent 4d6e1e4f29
commit 5e4430e70d
50 changed files with 222 additions and 209 deletions

View File

@@ -127,7 +127,7 @@ static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
#endif
/* RAND stuff */
static int hwcrhk_rand_bytes(unsigned char *buf, int num);
static int hwcrhk_rand_bytes(unsigned char *buf, size_t num);
static int hwcrhk_rand_status(void);
/* KM stuff */
@@ -1097,7 +1097,7 @@ static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
#endif
/* Random bytes are good */
static int hwcrhk_rand_bytes(unsigned char *buf, int num)
static int hwcrhk_rand_bytes(unsigned char *buf, size_t num)
{
char tempbuf[1024];
HWCryptoHook_ErrMsgBuf rmsg;