git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
include
/
linux
/
crypto.h
diff --git
a/include/linux/crypto.h
b/include/linux/crypto.h
index
0f0d8a9
..
387da6a
100644
(file)
--- a/
include/linux/crypto.h
+++ b/
include/linux/crypto.h
@@
-16,6
+16,7
@@
#ifndef _LINUX_CRYPTO_H
#define _LINUX_CRYPTO_H
#ifndef _LINUX_CRYPTO_H
#define _LINUX_CRYPTO_H
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
@@
-56,6
+57,9
@@
#define CRYPTO_UNSPEC 0
#define CRYPTO_MAX_ALG_NAME 64
#define CRYPTO_UNSPEC 0
#define CRYPTO_MAX_ALG_NAME 64
+#define CRYPTO_DIR_ENCRYPT 1
+#define CRYPTO_DIR_DECRYPT 0
+
struct scatterlist;
/*
struct scatterlist;
/*
@@
-118,7
+122,14
@@
int crypto_unregister_alg(struct crypto_alg *alg);
/*
* Algorithm query interface.
*/
/*
* Algorithm query interface.
*/
+#ifdef CONFIG_CRYPTO
int crypto_alg_available(const char *name, u32 flags);
int crypto_alg_available(const char *name, u32 flags);
+#else
+static inline int crypto_alg_available(const char *name, u32 flags)
+{
+ return 0;
+}
+#endif
/*
* Transforms: user-instantiated objects which encapsulate algorithms
/*
* Transforms: user-instantiated objects which encapsulate algorithms