aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-08-26 04:12:40 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:46:22 -0400
commite4d5b79c661c7cfca9d8d5afd040a295f128d3cb (patch)
tree55a19ceca1b51b26d1934d388b26f0b1bed99a3e /crypto
parentfce32d70ba834129b164c40c2d4260e5a7a7d850 (diff)
[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 840ab8be0b96..83307420d31c 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -749,7 +749,7 @@ static void test_deflate(void)
749{ 749{
750 unsigned int i; 750 unsigned int i;
751 char result[COMP_BUF_SIZE]; 751 char result[COMP_BUF_SIZE];
752 struct crypto_tfm *tfm; 752 struct crypto_comp *tfm;
753 struct comp_testvec *tv; 753 struct comp_testvec *tv;
754 unsigned int tsize; 754 unsigned int tsize;
755 755
@@ -821,7 +821,7 @@ static void test_deflate(void)
821 ilen, dlen); 821 ilen, dlen);
822 } 822 }
823out: 823out:
824 crypto_free_tfm(tfm); 824 crypto_free_comp(tfm);
825} 825}
826 826
827static void test_available(void) 827static void test_available(void)
@@ -830,8 +830,8 @@ static void test_available(void)
830 830
831 while (*name) { 831 while (*name) {
832 printk("alg %s ", *name); 832 printk("alg %s ", *name);
833 printk((crypto_alg_available(*name, 0)) ? 833 printk(crypto_has_alg(*name, 0, CRYPTO_ALG_ASYNC) ?
834 "found\n" : "not found\n"); 834 "found\n" : "not found\n");
835 name++; 835 name++;
836 } 836 }
837} 837}