Search Linux Wireless

Re: [PATCH] mac80211: fix autoloading of crypto modules for WEP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-07-22 at 22:05 +0200, Andreas Oberritter wrote:
> If at least one of arc4 and ecb is built as a module, then autoloading
> of the algorithm fails, because crypto_alloc_blkcipher tries to
> request the module "ecb(arc4)", which does not exist.
> 
> This patch was made against 2.6.30, but should apply cleanly on top of
> the wireless-2.6 git tree.

> +       /*
> +        * crypto_alloc_blkcipher() will request the
> +        * module "ecb(arc4)", which does not exist.
> +        */
> +#ifdef CONFIG_CRYPTO_ARC4_MODULE
> +       request_module("arc4");
> +#endif
> +#ifdef CONFIG_CRYPTO_ECB_MODULE
> +       request_module("ecb");
> +#endif
> +
>         local->wep_tx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0,
>                                                 CRYPTO_ALG_ASYNC);

But it will absolutely not _be_ applied. Fix the crypto layer instead if
it has a problem loading modules.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux