summaryrefslogtreecommitdiffstats
path: root/ncr-key-wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncr-key-wrap.c')
-rw-r--r--ncr-key-wrap.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c
index fda8de2..d5d3df0 100644
--- a/ncr-key-wrap.c
+++ b/ncr-key-wrap.c
@@ -430,7 +430,7 @@ cleanup:
return ret;
}
-int ncr_key_wrap(struct list_sem_st* key_lst, void __user* arg)
+int ncr_key_wrap(struct ncr_lists *lst, void __user* arg)
{
struct ncr_key_wrap_st wrap;
struct key_item_st* wkey = NULL;
@@ -444,7 +444,7 @@ int ret;
return -EFAULT;
}
- ret = ncr_key_item_get_read( &wkey, key_lst, wrap.keytowrap);
+ ret = ncr_key_item_get_read( &wkey, lst, wrap.keytowrap);
if (ret < 0) {
err();
return ret;
@@ -456,7 +456,7 @@ int ret;
goto fail;
}
- ret = ncr_key_item_get_read( &key, key_lst, wrap.key);
+ ret = ncr_key_item_get_read( &key, lst, wrap.key);
if (ret < 0) {
err();
goto fail;
@@ -513,7 +513,7 @@ fail:
/* Unwraps keys. All keys unwrapped are not accessible by
* userspace.
*/
-int ncr_key_unwrap(struct list_sem_st* key_lst, void __user* arg)
+int ncr_key_unwrap(struct ncr_lists *lst, void __user* arg)
{
struct ncr_key_wrap_st wrap;
struct key_item_st* wkey = NULL;
@@ -527,13 +527,13 @@ int ret;
return -EFAULT;
}
- ret = ncr_key_item_get_write( &wkey, key_lst, wrap.keytowrap);
+ ret = ncr_key_item_get_write( &wkey, lst, wrap.keytowrap);
if (ret < 0) {
err();
return ret;
}
- ret = ncr_key_item_get_read( &key, key_lst, wrap.key);
+ ret = ncr_key_item_get_read( &key, lst, wrap.key);
if (ret < 0) {
err();
goto fail;
@@ -575,7 +575,7 @@ fail:
return ret;
}
-int ncr_key_storage_wrap(struct list_sem_st* key_lst, void __user* arg)
+int ncr_key_storage_wrap(struct ncr_lists *lst, void __user* arg)
{
struct ncr_key_storage_wrap_st wrap;
struct key_item_st* wkey = NULL;
@@ -595,7 +595,7 @@ int ret;
return -EFAULT;
}
- ret = ncr_key_item_get_read( &wkey, key_lst, wrap.keytowrap);
+ ret = ncr_key_item_get_read( &wkey, lst, wrap.keytowrap);
if (ret < 0) {
err();
return ret;
@@ -651,7 +651,7 @@ fail:
/* Unwraps keys. All keys unwrapped are not accessible by
* userspace.
*/
-int ncr_key_storage_unwrap(struct list_sem_st* key_lst, void __user* arg)
+int ncr_key_storage_unwrap(struct ncr_lists *lst, void __user* arg)
{
struct ncr_key_storage_wrap_st wrap;
struct key_item_st* wkey = NULL;
@@ -670,7 +670,7 @@ int ret;
return -EFAULT;
}
- ret = ncr_key_item_get_write( &wkey, key_lst, wrap.keytowrap);
+ ret = ncr_key_item_get_write( &wkey, lst, wrap.keytowrap);
if (ret < 0) {
err();
return ret;