Skip to contentSkip to conversation

authenc compile warnings in current net-2.6.24

DISCUSSION Oliver Hartkopp 2 participants 2 messages Oct 12, 2007

Subsystems (3)
lore
Share & tools
lore

Oliver Hartkopp

author Acked-by
#0 lore raw

Hi Dave,

this compile fix seems not to be applied (maybe my compiler is the only one who complains ;-)

Thanks!

Quoted 2 lines · Herbert Xu

Yeah I've added a fix in the cryptodev tree.

Oh and here's the actual patch.

Cheers,

Signature · 6 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
1cd6038ce42447f9a32e6d138af0b69ad56ea627
crypto/authenc.c +0 -0
index 0b29a6a..126a529 100644
@@ -84,8 +84,8 @@ static int crypto_authenc_hash(struct aead_request *req)
		.tfm = auth,
	};
	u8 *hash = aead_request_ctx(req);
-	struct scatterlist *dst;
-	unsigned int cryptlen;
+	struct scatterlist *dst = req->dst;
+	unsigned int cryptlen = req->cryptlen;
	int err;

	hash = (u8 *)ALIGN((unsigned long)hash + crypto_hash_alignmask(auth), 
@@ -100,8 +100,6 @@ static int crypto_authenc_hash(struct aead_request *req)
	if (err)
		goto auth_unlock;

- cryptlen = req->cryptlen;

-	dst = req->dst;
	err = crypto_hash_update(&desc, dst, cryptlen);
	if (err)
		goto auth_unlock;
@@ -159,8 +157,8 @@ static int crypto_authenc_verify(struct aead_request *req)
	};
	u8 *ohash = aead_request_ctx(req);
	u8 *ihash;
-	struct scatterlist *src;
-	unsigned int cryptlen;
+	struct scatterlist *src = req->src;
+	unsigned int cryptlen = req->cryptlen;
	unsigned int authsize;
	int err;

@@ -177,8 +175,6 @@ static int crypto_authenc_verify(struct aead_request *req)

	if (err)
		goto auth_unlock;

- cryptlen = req->cryptlen;

-	src = req->src;
	err = crypto_hash_update(&desc, src, cryptlen);
	if (err)
		goto auth_unlock;

-
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#1 lore raw
Quoted 4 lines · Oliver Hartkopp

Hi Dave,

this compile fix seems not to be applied (maybe my compiler is the only one who complains ;-)

That's because the patch is in my cryptodev-2.6 tree :)

Thanks,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt