lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 26 May 2010 08:52:44 -0700
From:	Charles Clément <caratorn@...il.com>
To:	Jiri Kosina <jkosina@...e.cz>
Cc:	Charles Clément <caratorn@...il.com>,
	Andreas Schwab <schwab@...hat.com>, devel@...verdev.osuosl.org,
	Jassi Brar <jassisinghbrar@...il.com>,
	Greg Kroah-Hartman <gregkh@...e.de>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: remove all code dependent on
 LINUX_VERSION_CODE

On Wed, May 26, 2010 at 01:39:42PM +0200, Jiri Kosina wrote:
> On Tue, 25 May 2010, Charles Clément wrote:

> > > diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> > > index 65f4889..14ca610 100644
> > > --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> > > +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> > 
> > > @@ -886,32 +711,18 @@ static int ieee80211_tkip_set_key(void *key, int len, u8 *seq, void *priv)
> > >  {
> > >  	struct ieee80211_tkip_data *tkey = priv;
> > >  	int keyidx;
> > > -#if((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) && (!OPENSUSE_SLED))
> > > -	struct crypto_tfm *tfm = tkey->tx_tfm_michael;
> > > -	struct crypto_tfm *tfm2 = tkey->tx_tfm_arc4;
> > > -	struct crypto_tfm *tfm3 = tkey->rx_tfm_michael;
> > > -	struct crypto_tfm *tfm4 = tkey->rx_tfm_arc4;
> > > -#else
> > >  	struct crypto_hash *tfm = tkey->tx_tfm_michael;
> > >  	struct crypto_blkcipher *tfm2 = tkey->tx_tfm_arc4;
> > >  	struct crypto_hash *tfm3 = tkey->rx_tfm_michael;
> > >  	struct crypto_blkcipher *tfm4 = tkey->rx_tfm_arc4;
> > > -#endif
> > >  
> > >  	keyidx = tkey->key_idx;
> > >  	memset(tkey, 0, sizeof(*tkey));
> > >  	tkey->key_idx = keyidx;
> > > -#if((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) && (!OPENSUSE_SLED))
> > >  	tkey->tx_tfm_michael = tfm;
> > >  	tkey->tx_tfm_arc4 = tfm2;
> > >  	tkey->rx_tfm_michael = tfm3;
> > >  	tkey->rx_tfm_arc4 = tfm4;
> > > -#else
> > > -	tkey->tx_tfm_michael = tfm;
> > > -	tkey->tx_tfm_arc4 = tfm2;
> > > -	tkey->rx_tfm_michael = tfm3;
> > > -	tkey->rx_tfm_arc4 = tfm4;
> > > -#endif
> > 
> > In this block, it is not the same branch that are kept, don't you want
> > to keep the same ones?
> 
> What difference do you see?

Right, the branch are exactly the same, sorry.

> -- 
> Jiri Kosina
> SUSE Labs, Novell Inc.

-- 
Charles Clément

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ