Since kernel version 2.6.13 the "crypto_tfm_ctx()" inline function
is part of the linux kernel sources and therefore conflict with the
own definition of cipe:
-- cut here --
In file included from /usr/src/cipe-linux/2.6.13-gentoo-i386-cb/
cipe.h:161,
from /usr/src/cipe-linux/2.6.13-gentoo-i386-cb/
module.c:15:
/usr/src/cipe-linux/2.6.13-gentoo-i386-cb/cryptoapi.h:94: error:
redefinition of 'crypto_tfm_ctx'
include/linux/crypto.h:297: error: previous definition of
'crypto_tfm_ctx' was here
-- cut here --
However, this can be easily solved by excluding the relevant
definition in cryptoapi.h with the following patch:
===================
RCS file: /cvsroot/cipe-linux/cipe-linux/cipe/cryptoapi.h,v
retrieving revision 1.6
diff -u -r1.6 cryptoapi.h
--- cipe/cryptoapi.h 3 Aug 2004 08:21:17 -0000 1.6
+++ cipe/cryptoapi.h 1 Sep 2005 09:12:17 -0000
@@ -90,10 +90,12 @@
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm)
{
return (void *)&tfm[1];
}
+#endif
static inline void crypto_cipher_encrypt_blk(struct crypto_tfm
*tfm,
u8 *dst,
-- cut here --
However, I will attach my complete "cipe.patch" file which should
make the current set of sources in the CVS automatically
compilable for kernel 2.6.13, including my previous patch to make
cipe work with 2.6.12 kernels.
Hope to see my patches be applied against the latest CVS
sources soon....
Patch against latest CVS sources to make CIPE compile with kernels 2.6.12 and 2.6.13+