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

Re: OpenSSL for LX?




I ported it to use it with OpenSSH and OpenVPN.

I also tried it out with a https man-in-the-midle attack :-)

I had to hack the Makefile quite a lot.

Here is how I did it, but I'm sure that a more beautifull way
exists.

Sampo

> Has anyone ported OpenSSL to Dev Board LX? I'm interested in a minimum size
> client implementation suitable for SSL3 and HTTPS.
>
>
diff -uN openssl/.target-makefrag /home/sabe/openssl-0.9.6/.target-makefrag
--- openssl/.target-makefrag	Fri Jun  7 16:19:11 2002
+++ /home/sabe/openssl-0.9.6/.target-makefrag	Thu Jan  1 02:00:00 1970
@@ -1 +0,0 @@
-AXIS_BUILDTYPE=cris-axis-linux-gnu
Common subdirectories: openssl/CVS and /home/sabe/openssl-0.9.6/CVS
Common subdirectories: openssl/MacOS and /home/sabe/openssl-0.9.6/MacOS
diff -uN openssl/Makefile /home/sabe/openssl-0.9.6/Makefile
--- openssl/Makefile	Mon Jun 10 13:03:27 2002
+++ /home/sabe/openssl-0.9.6/Makefile	Sun Sep 24 18:29:23 2000
@@ -4,9 +4,6 @@
 ## Makefile for OpenSSL
 ##
 
-include $(APPS)/Rules.elinux
-
-
 VERSION=0.9.6
 MAJOR=0
 MINOR=9.6
@@ -57,14 +54,14 @@
 # equal 4.
 # PKCS1_CHECK - pkcs1 tests.
 
-#CC= cc
+CC= cc
 #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
-CFLAG+= -O -fPIC
+CFLAG= -O
 DEPFLAG= 
-PEX_LIBS+= -L. -L.. -L../.. -L../../..
+PEX_LIBS= -L. -L.. -L../.. -L../../..
 EX_LIBS= 
-AR+= -rcv
-#RANLIB= /usr/bin/ranlib
+AR=ar r
+RANLIB= /usr/bin/ranlib
 PERL= /usr/local/bin/perl
 TAR= tar
 TARFLAGS= --no-recursion
@@ -207,7 +204,7 @@
 		if [ "$(SHLIB_TARGET)" != "" ]; then \
 			$(MAKE) $(SHARED_LIBS); \
 		fi; \
-		need_shlib=true; \
+		need_shlib=false; \
 	else \
 		(cd $$i && echo "making all in $$i..." && \
 		$(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \
@@ -240,11 +237,11 @@
 	fi
 
 libcrypto.so: libcrypto.a
-#	@if [ "$(SHLIB_TARGET)" != "" ]; then 
+	@if [ "$(SHLIB_TARGET)" != "" ]; then \
 		$(MAKE) SHLIBDIRS=crypto $(SHLIB_TARGET); \
-#	else \
-#		echo "There's no support for shared libraries on this platform" >&2; \
-#	fi
+	else \
+		echo "There's no support for shared libraries on this platform" >&2; \
+	fi
 libssl.so: libcrypto.so libssl.a
 	@if [ "$(SHLIB_TARGET)" != "" ]; then \
 		$(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-L. -lcrypto' $(SHLIB_TARGET); \
diff -uN openssl/Makefile.ssl /home/sabe/openssl-0.9.6/Makefile.ssl
--- openssl/Makefile.ssl	Mon Jun 10 13:03:27 2002
+++ /home/sabe/openssl-0.9.6/Makefile.ssl	Sun Sep 24 18:29:23 2000
@@ -4,9 +4,6 @@
 ## Makefile for OpenSSL
 ##
 
-include $(APPS)/Rules.elinux
-
-
 VERSION=0.9.6
 MAJOR=0
 MINOR=9.6
@@ -57,14 +54,14 @@
 # equal 4.
 # PKCS1_CHECK - pkcs1 tests.
 
-#CC= cc
+CC= cc
 #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
-CFLAG+= -O -fPIC
+CFLAG= -O
 DEPFLAG= 
-PEX_LIBS+= -L. -L.. -L../.. -L../../..
+PEX_LIBS= -L. -L.. -L../.. -L../../..
 EX_LIBS= 
-AR+= -rcv
-#RANLIB= /usr/bin/ranlib
+AR=ar r
+RANLIB= /usr/bin/ranlib
 PERL= /usr/local/bin/perl
 TAR= tar
 TARFLAGS= --no-recursion
@@ -207,7 +204,7 @@
 		if [ "$(SHLIB_TARGET)" != "" ]; then \
 			$(MAKE) $(SHARED_LIBS); \
 		fi; \
-		need_shlib=true; \
+		need_shlib=false; \
 	else \
 		(cd $$i && echo "making all in $$i..." && \
 		$(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \
@@ -240,11 +237,11 @@
 	fi
 
 libcrypto.so: libcrypto.a
-#	@if [ "$(SHLIB_TARGET)" != "" ]; then 
+	@if [ "$(SHLIB_TARGET)" != "" ]; then \
 		$(MAKE) SHLIBDIRS=crypto $(SHLIB_TARGET); \
-#	else \
-#		echo "There's no support for shared libraries on this platform" >&2; \
-#	fi
+	else \
+		echo "There's no support for shared libraries on this platform" >&2; \
+	fi
 libssl.so: libcrypto.so libssl.a
 	@if [ "$(SHLIB_TARGET)" != "" ]; then \
 		$(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-L. -lcrypto' $(SHLIB_TARGET); \
Common subdirectories: openssl/VMS and /home/sabe/openssl-0.9.6/VMS
Common subdirectories: openssl/apps and /home/sabe/openssl-0.9.6/apps
Common subdirectories: openssl/bugs and /home/sabe/openssl-0.9.6/bugs
Common subdirectories: openssl/certs and /home/sabe/openssl-0.9.6/certs
Common subdirectories: openssl/crypto and /home/sabe/openssl-0.9.6/crypto
Common subdirectories: openssl/demos and /home/sabe/openssl-0.9.6/demos
Common subdirectories: openssl/doc and /home/sabe/openssl-0.9.6/doc
Common subdirectories: openssl/include and /home/sabe/openssl-0.9.6/include
Common subdirectories: openssl/ms and /home/sabe/openssl-0.9.6/ms
Common subdirectories: openssl/perl and /home/sabe/openssl-0.9.6/perl
Common subdirectories: openssl/rsaref and /home/sabe/openssl-0.9.6/rsaref
Common subdirectories: openssl/shlib and /home/sabe/openssl-0.9.6/shlib
Common subdirectories: openssl/ssl and /home/sabe/openssl-0.9.6/ssl
Common subdirectories: openssl/test and /home/sabe/openssl-0.9.6/test
Common subdirectories: openssl/times and /home/sabe/openssl-0.9.6/times
Common subdirectories: openssl/tools and /home/sabe/openssl-0.9.6/tools
Common subdirectories: openssl/util and /home/sabe/openssl-0.9.6/util