crypto: shash - Test for the algorithms import function before exporting it
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 24 Jul 2009 05:57:13 +0000 (13:57 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jul 2009 05:57:13 +0000 (13:57 +0800)
commit0044f3eda9a778ab63c2a5eafede3803f01b0b97
treefae187f93d87b003a7446537097cd50cd22707e9
parent5befbd5a7e9c814d145f15b4281c88da96fb1aa9
crypto: shash - Test for the algorithms import function before exporting it

crypto_init_shash_ops_async() tests for setkey and not for import
before exporting the algorithms import function to ahash.
This patch fixes this.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/shash.c