summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-26 09:46:50 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-26 09:46:50 +0200
commite8313378c5da5f8e3c856939f3c5a441720accc7 (patch)
tree604e4dac4b9f324681d4f755a686ce1fa9aa6ab6
parent5af672c074827d4321807ee25c2b57eed7b24a35 (diff)
downloadcryptodev-linux-e8313378c5da5f8e3c856939f3c5a441720accc7.tar.gz
cryptodev-linux-e8313378c5da5f8e3c856939f3c5a441720accc7.tar.xz
cryptodev-linux-e8313378c5da5f8e3c856939f3c5a441720accc7.zip
Added __user to userspace buffers.
-rw-r--r--ncr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ncr.h b/ncr.h
index ccb0bb1..ee6d502 100644
--- a/ncr.h
+++ b/ncr.h
@@ -196,7 +196,7 @@ struct ncr_key_wrap_st {
ncr_key_t key;
struct ncr_key_params_st params;
- void* io; /* encrypted keytowrap */
+ void __user * io; /* encrypted keytowrap */
size_t io_size; /* this will be updated by the actual size on wrap */
};
@@ -216,7 +216,7 @@ struct ncr_master_key_st {
struct ncr_key_storage_wrap_st {
ncr_key_t keytowrap;
- void* io; /* encrypted keytowrap */
+ void __user * io; /* encrypted keytowrap */
size_t io_size; /* this will be updated by the actual size on wrap */
};
@@ -267,15 +267,15 @@ struct ncr_session_op_st {
union {
struct {
ncr_key_t input;
- void* output; /* when verifying signature this is
+ void __user * output; /* when verifying signature this is
* the place of the signature.
*/
size_t output_size;
} kdata; /* NCR_KEY_DATA */
struct {
- void* input;
+ void __user * input;
size_t input_size;
- void* output;
+ void __user * output;
size_t output_size;
} udata; /* NCR_DIRECT_DATA */
} data;