diff options
author | Ben Laurie <ben@openssl.org> | 2008-11-01 16:40:37 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-11-01 16:40:37 +0000 |
commit | 5e4430e70df0020f5f1517249851696cb9ac4ad2 (patch) | |
tree | 95dcbc73bcd99b725664324db882b4a388d0d4cb /engines/e_sureware.c | |
parent | 4d6e1e4f29de455b5e644ea9cae5d5f5a2dbef33 (diff) |
More size_tification.
Diffstat (limited to 'engines/e_sureware.c')
-rw-r--r-- | engines/e_sureware.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/e_sureware.c b/engines/e_sureware.c index cd0fa4c397..34ae6ed505 100644 --- a/engines/e_sureware.c +++ b/engines/e_sureware.c @@ -96,9 +96,9 @@ static int surewarehk_rsa_sign(int flen,const unsigned char *from,unsigned char #endif /* RAND stuff */ -static int surewarehk_rand_bytes(unsigned char *buf, int num); -static void surewarehk_rand_seed(const void *buf, int num); -static void surewarehk_rand_add(const void *buf, int num, double entropy); +static int surewarehk_rand_bytes(unsigned char *buf, size_t num); +static void surewarehk_rand_seed(const void *buf, size_t num); +static void surewarehk_rand_add(const void *buf, size_t num, double entropy); /* KM stuff */ static EVP_PKEY *surewarehk_load_privkey(ENGINE *e, const char *key_id, @@ -613,7 +613,7 @@ static void surewarehk_error_handling(char *const msg,int func,int ret) } } -static int surewarehk_rand_bytes(unsigned char *buf, int num) +static int surewarehk_rand_bytes(unsigned char *buf, size_t num) { int ret=0; char msg[64]="ENGINE_rand_bytes"; @@ -629,7 +629,7 @@ static int surewarehk_rand_bytes(unsigned char *buf, int num) return ret==1 ? 1 : 0; } -static void surewarehk_rand_seed(const void *buf, int num) +static void surewarehk_rand_seed(const void *buf, size_t num) { int ret=0; char msg[64]="ENGINE_rand_seed"; @@ -644,7 +644,7 @@ static void surewarehk_rand_seed(const void *buf, int num) } } -static void surewarehk_rand_add(const void *buf, int num, double entropy) +static void surewarehk_rand_add(const void *buf, size_t num, double entropy) { surewarehk_rand_seed(buf,num); } |