diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-18 18:32:01 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-18 18:32:13 +0200 |
commit | 3de13730d8949e95aac0902f71299e991fc185ae (patch) | |
tree | 828fd3086c646ff4275a8fdbdfb003459ef985e1 | |
parent | cc991ff936e519c21f6d82dc9030caf1340416e4 (diff) | |
download | cryptodev-linux-3de13730d8949e95aac0902f71299e991fc185ae.tar.gz cryptodev-linux-3de13730d8949e95aac0902f71299e991fc185ae.tar.xz cryptodev-linux-3de13730d8949e95aac0902f71299e991fc185ae.zip |
Use compat_uptr_t to identify pointers in compat_ioctl structures..
-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 */ |