summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-08-26 18:12:40 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-21 11:46:22 +1000
commit3f295d387356ed528537012b52e0d9cf1bdbde3a (patch)
treeae23b3cf37a7715618bb39182da3a05696bff221 /crypto
parent65bf99bf8d2f86a2b59fe7fb5e829e1e24b73316 (diff)
downloadlinux-crypto-3f295d387356ed528537012b52e0d9cf1bdbde3a.tar.gz
linux-crypto-3f295d387356ed528537012b52e0d9cf1bdbde3a.zip
[CRYPTO] users: Use crypto_comp and crypto_has_*
This patch converts all users to use the new crypto_comp type and the crypto_has_* functions. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 840ab8be..83307420 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -749,7 +749,7 @@ static void test_deflate(void)
{
unsigned int i;
char result[COMP_BUF_SIZE];
- struct crypto_tfm *tfm;
+ struct crypto_comp *tfm;
struct comp_testvec *tv;
unsigned int tsize;
@@ -821,7 +821,7 @@ static void test_deflate(void)
ilen, dlen);
}
out:
- crypto_free_tfm(tfm);
+ crypto_free_comp(tfm);
}
static void test_available(void)
@@ -830,8 +830,8 @@ static void test_available(void)
while (*name) {
printk("alg %s ", *name);
- printk((crypto_alg_available(*name, 0)) ?
- "found\n" : "not found\n");
+ printk(crypto_has_alg(*name, 0, CRYPTO_ALG_ASYNC) ?
+ "found\n" : "not found\n");
name++;
}
}