summaryrefslogtreecommitdiff
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-07-31 17:08:25 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-08-29 15:49:55 +1000
commitc711937af9a55d913e3da8d5b02ef9ec36db6219 (patch)
treea9c69c32c3755a8484c0a479dd9d4ecadf318a55 /crypto/internal.h
parent09fa90e553ed140091128012f92782b880b5fad9 (diff)
downloadlinux-crypto-c711937af9a55d913e3da8d5b02ef9ec36db6219.tar.gz
linux-crypto-c711937af9a55d913e3da8d5b02ef9ec36db6219.zip
crypto: cryptomgr - Add test infrastructure
This patch moves the newly created alg_test infrastructure into cryptomgr. This shall allow us to use it for testing at algorithm registrations. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 6d8d2131..48cb7041 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -108,6 +108,9 @@ int crypto_register_instance(struct crypto_template *tmpl,
int crypto_register_notifier(struct notifier_block *nb);
int crypto_unregister_notifier(struct notifier_block *nb);
+int __init testmgr_init(void);
+void testmgr_exit(void);
+
static inline void crypto_alg_put(struct crypto_alg *alg)
{
if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy)