summaryrefslogtreecommitdiffstats
path: root/ncr-int.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-24 20:43:13 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:43:13 +0200
commit51a92d357aebc84b45cf8c90061319d22b170bb5 (patch)
treeef86e6681d7ecded3d543f0238a30dcadb4730c2 /ncr-int.h
parent5c340eee0020717c793fd9d7e74e5f065225a8f3 (diff)
downloadcryptodev-linux-51a92d357aebc84b45cf8c90061319d22b170bb5.tar.gz
cryptodev-linux-51a92d357aebc84b45cf8c90061319d22b170bb5.tar.xz
cryptodev-linux-51a92d357aebc84b45cf8c90061319d22b170bb5.zip
Reject prohibited key flags immediately
Silently ignoring user's requests is unexpected.
Diffstat (limited to 'ncr-int.h')
-rw-r--r--ncr-int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncr-int.h b/ncr-int.h
index 6277619..03ad298 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -110,7 +110,7 @@ long ncr_ioctl(struct ncr_lists *lst, unsigned int cmd, unsigned long arg);
int ncr_key_derive(struct ncr_lists *lst, void __user* arg);
void ncr_key_clear(struct key_item_st* item);
-void ncr_key_assign_flags(struct key_item_st* item, unsigned int flags);
+int ncr_key_assign_flags(struct key_item_st *item, unsigned int flags);
/* key handling */
int ncr_key_init(struct ncr_lists *lst, void __user* arg);