diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-24 20:11:39 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:23 -0700 |
commit | 4bf0438332d5173836fdc2d6471fec526d0a14a8 (patch) | |
tree | f645d631bc74361993babac09fa94509e6088a46 /drivers/staging/p9auth/p9auth.c | |
parent | 9752ef46c6d32b7ccf10b874f00e433844db2b1a (diff) | |
download | op-kernel-dev-4bf0438332d5173836fdc2d6471fec526d0a14a8.zip op-kernel-dev-4bf0438332d5173836fdc2d6471fec526d0a14a8.tar.gz |
Staging: p9auth: remove unneeded header file
The p9auth.h file is not needed, move the stuff into p9auth.c file and
delete it.
Cc: Ashwin Ganti <ashwin.ganti@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/p9auth/p9auth.c')
-rw-r--r-- | drivers/staging/p9auth/p9auth.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/drivers/staging/p9auth/p9auth.c b/drivers/staging/p9auth/p9auth.c index 4f079fa..5824c7f 100644 --- a/drivers/staging/p9auth/p9auth.c +++ b/drivers/staging/p9auth/p9auth.c @@ -33,7 +33,38 @@ #include <linux/crypto.h> #include <linux/sched.h> #include <linux/cred.h> -#include "p9auth.h" + +#ifndef CAP_MAJOR +#define CAP_MAJOR 0 +#endif + +#ifndef CAP_NR_DEVS +#define CAP_NR_DEVS 2 /* caphash and capuse */ +#endif + +#ifndef CAP_NODE_SIZE +#define CAP_NODE_SIZE 20 +#endif + +#define MAX_DIGEST_SIZE 20 + +struct cap_node { + char data[CAP_NODE_SIZE]; + struct list_head list; +}; + +struct cap_dev { + struct cap_node *head; + int node_size; + unsigned long size; + struct semaphore sem; + struct cdev cdev; +}; + +int cap_trim(struct cap_dev *); +ssize_t cap_write(struct file *, const char __user *, size_t, loff_t *); +char *cap_hash(char *plain_text, unsigned int plain_text_size, char *key, unsigned int key_size); +void hex_dump(unsigned char * buf, unsigned int len); int cap_major = CAP_MAJOR; int cap_minor = 0; |