Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141745
b: refs/heads/master
c: 4bf0438
h: refs/heads/master
i:
  141743: add0b66
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 9183ac2 commit a3310ff
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 37 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9752ef46c6d32b7ccf10b874f00e433844db2b1a
refs/heads/master: 4bf0438332d5173836fdc2d6471fec526d0a14a8
33 changes: 32 additions & 1 deletion trunk/drivers/staging/p9auth/p9auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
35 changes: 0 additions & 35 deletions trunk/drivers/staging/p9auth/p9auth.h

This file was deleted.

0 comments on commit a3310ff

Please sign in to comment.