]> err.no Git - linux-2.6/blobdiff - drivers/net/ppp_mppe.c
[BNX2]: Remove udelay() in copper PHY code.
[linux-2.6] / drivers / net / ppp_mppe.c
index e7a0eb4fca6031bdffd8e279935cadee395f9183..f3655fd772f5b765c7f0e33fb693480a255135ae 100644 (file)
@@ -710,8 +710,8 @@ static struct compressor ppp_mppe = {
 static int __init ppp_mppe_init(void)
 {
        int answer;
-       if (!(crypto_alg_available("ecb(arc4)", 0) &&
-             crypto_alg_available("sha1", 0)))
+       if (!(crypto_has_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC) &&
+             crypto_has_hash("sha1", 0, CRYPTO_ALG_ASYNC)))
                return -ENODEV;
 
        sha_pad = kmalloc(sizeof(struct sha_pad), GFP_KERNEL);