]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
openssl-compat: Enable cryptodev again.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Dec 2013 19:56:16 +0000 (20:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Dec 2013 19:56:16 +0000 (20:56 +0100)
This is compiled in and therefore not an externally loadable
engine.

lfs/openssl-compat

index 75dd4a2fca4285463557c4c14e1df8c1e7399f98..d2ae6a0e909d412a639d1d38157e710502591a1b 100644 (file)
@@ -71,6 +71,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
 
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-0.9.8u-cryptodev.patch
+
        cd $(DIR_APP) && sed -i -e 's/mcpu/march/' config
        cd $(DIR_APP) && sed -i -e 's/-O3/-O2/' -e 's/-march=i486/-march=i586/' Configure
 
@@ -83,7 +85,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                shared linux-elf \
                zlib-dynamic \
                no-engines \
-               no-asm 386
+               no-asm 386 \
+               -DSSL_FORBID_ENULL \
+               -DHAVE_CRYPTODEV \
+               -DUSE_CRYPTODEV_DIGEST
 
        cd $(DIR_APP) && make depend
        cd $(DIR_APP) && make