aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/rngs
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-04-22 08:26:54 +0000
committerMartin Willi <martin@strongswan.org>2009-04-22 08:26:54 +0000
commit090ba9453c6effce12d41d1332aa03b2ee6177fe (patch)
treeb9a178812b925ad5498583324cd54d401be8a8cd /src/libstrongswan/crypto/rngs
parentfaf0e418016ea7d5dbe16340cf4e6e98f22995bd (diff)
downloadstrongswan-090ba9453c6effce12d41d1332aa03b2ee6177fe.tar.bz2
strongswan-090ba9453c6effce12d41d1332aa03b2ee6177fe.tar.xz
fixed compiler warnings on 64bit
Diffstat (limited to 'src/libstrongswan/crypto/rngs')
-rw-r--r--src/libstrongswan/crypto/rngs/rng.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/crypto/rngs/rng.h b/src/libstrongswan/crypto/rngs/rng.h
index 1c4d204f3..862c7a4fe 100644
--- a/src/libstrongswan/crypto/rngs/rng.h
+++ b/src/libstrongswan/crypto/rngs/rng.h
@@ -56,7 +56,7 @@ struct rng_t {
* @param len number of bytes to get
* @param buffer pointer where the generated bytes will be written
*/
- void (*get_bytes) (rng_t *this, u_int len, u_int8_t *buffer);
+ void (*get_bytes) (rng_t *this, size_t len, u_int8_t *buffer);
/**
* Generates random bytes and allocate space for them.
@@ -64,7 +64,7 @@ struct rng_t {
* @param len number of bytes to get
* @param chunk chunk which will hold generated bytes
*/
- void (*allocate_bytes) (rng_t *this, u_int len, chunk_t *chunk);
+ void (*allocate_bytes) (rng_t *this, size_t len, chunk_t *chunk);
/**
* Destroys a rng object.