diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-07-31 05:08:25 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-29 01:49:55 -0400 |
commit | da7f033ddc9fdebb3223b0bf88a2a2ab5b797608 (patch) | |
tree | 619aa89f8787abf07a66e3925bfc72c44a067b04 /crypto/internal.h | |
parent | 01b323245e4f6d4a22ffd73754f145f45c85988c (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index 6d8d21310585..48cb70416d59 100644 --- a/crypto/internal.h +++ b/crypto/internal.h | |||
@@ -108,6 +108,9 @@ int crypto_register_instance(struct crypto_template *tmpl, | |||
108 | int crypto_register_notifier(struct notifier_block *nb); | 108 | int crypto_register_notifier(struct notifier_block *nb); |
109 | int crypto_unregister_notifier(struct notifier_block *nb); | 109 | int crypto_unregister_notifier(struct notifier_block *nb); |
110 | 110 | ||
111 | int __init testmgr_init(void); | ||
112 | void testmgr_exit(void); | ||
113 | |||
111 | static inline void crypto_alg_put(struct crypto_alg *alg) | 114 | static inline void crypto_alg_put(struct crypto_alg *alg) |
112 | { | 115 | { |
113 | if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) | 116 | if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) |