diff options
Diffstat (limited to 'cryptodev_int.h')
-rw-r--r-- | cryptodev_int.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cryptodev_int.h b/cryptodev_int.h index 7d2e83f..c686150 100644 --- a/cryptodev_int.h +++ b/cryptodev_int.h @@ -68,6 +68,7 @@ int cryptodev_hash_init( struct hash_data* hdata, const char* alg_name, int hmac /* compatibility stuff */ #ifdef CONFIG_COMPAT +#include <linux/compat.h> /* input of CIOCGSESSION */ struct compat_session_op { @@ -77,9 +78,9 @@ struct compat_session_op { uint32_t mac; /* cryptodev_crypto_op_t */ uint32_t keylen; - uint32_t key; /* pointer to key data */ + compat_uptr_t key; /* pointer to key data */ uint32_t mackeylen; - uint32_t mackey; /* pointer to mac key data */ + compat_uptr_t mackey; /* pointer to mac key data */ uint32_t ses; /* session identifier */ }; @@ -90,10 +91,10 @@ struct compat_session_op { uint16_t op; /* COP_ENCRYPT or COP_DECRYPT */ uint16_t flags; /* no usage so far, use 0 */ uint32_t len; /* length of source data */ - uint32_t src; /* source data */ - uint32_t dst; /* pointer to output data */ - uint32_t mac; /* pointer to output data for hash/MAC operations */ - uint32_t iv; /* initialization vector for encryption operations */ + compat_uptr_t src; /* source data */ + compat_uptr_t dst; /* pointer to output data */ + compat_uptr_t mac; /* pointer to output data for hash/MAC operations */ + compat_uptr_t iv; /* initialization vector for encryption operations */ }; /* compat ioctls, defined for the above structs */ |