summaryrefslogtreecommitdiffstats
path: root/ncr.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-07 19:33:33 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-07 19:33:33 +0200
commitb673efed4a10dc31567b1c29b140b7910daeaf95 (patch)
tree9dbd383a19543719bf6f3e25b7c3259aa1f461f6 /ncr.c
parent4334f22638344873c4361f663be9d3dcad2b6bc4 (diff)
downloadcryptodev-linux-b673efed4a10dc31567b1c29b140b7910daeaf95.tar.gz
cryptodev-linux-b673efed4a10dc31567b1c29b140b7910daeaf95.tar.xz
cryptodev-linux-b673efed4a10dc31567b1c29b140b7910daeaf95.zip
Public and private keys are being generated in a new workqueue. Some other fixes and optimizations.
Diffstat (limited to 'ncr.c')
-rw-r--r--ncr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ncr.c b/ncr.c
index abdad6d..228b54f 100644
--- a/ncr.c
+++ b/ncr.c
@@ -31,6 +31,7 @@
#include <linux/capability.h>
#include "ncr.h"
#include "ncr_int.h"
+#include <linux/workqueue.h>
/* This is the master wrapping key for storage of keys
*/
@@ -163,9 +164,9 @@ ncr_ioctl(struct ncr_lists* lst, struct file *filp,
return ncr_session_once(lst, (void*)arg);
case NCRIO_MASTER_KEY_SET:
return ncr_master_key_set((void*)arg);
-#if 0
case NCRIO_KEY_GENERATE_PAIR:
return ncr_key_generate_pair(&lst->key, (void*)arg);
+#if 0
case NCRIO_KEY_DERIVE:
return ncr_key_derive(&lst->key, (void*)arg);
case NCRIO_KEY_GET_PUBLIC: