Commit 97d58ead authored by cvs2svn's avatar cvs2svn
Browse files

This commit was manufactured by cvs2svn to create branch

'OpenSSL_0_9_7-stable'.
parents 8cdeec9f 0bf23d9b
Loading
Loading
Loading
Loading

INSTALL.WCE

0 → 100644
+63 −0
Original line number Diff line number Diff line
 
 INSTALLATION FOR THE WINDOWS CE PLATFORM
 ----------------------------------------

 Building OpenSSL for Windows CE requires the following external tools:

  * Microsoft eMbedded Visual C++ 3.0
  * wcecompat compatibility library (www.essemer.com.au)
  * Optionally ceutils for running automated tests (www.essemer.com.au)

 The C Runtime Library implementation for Windows CE that is included with
 Microsoft eMbedded Visual C++ 3.0 is incomplete and in some places
 incorrect.  wcecompat plugs the holes and tries to bring the Windows CE
 CRT to a level that is more compatible with ANSI C.  wcecompat goes further
 and provides low-level IO and stream IO support for stdin/stdout/stderr
 (which Windows CE does not provide).  This IO functionality is not needed
 by the OpenSSL library itself but is used for the tests and openssl.exe.
 More information is available at www.essemer.com.au.

 Building
 --------

 You need Perl for Win32.  Unless you will build on Cygwin, you will need
 ActiveState Perl, available from http://www.activestate.com/ActivePerl.

 Setup the eMbedded Visual C++ environment.  There are batch files for doing
 this installed with eVC++.  For an ARM processor, for example, execute:

 > "C:\Program Files\Microsoft eMbedded Tools\EVC\WCE300\BIN\WCEARM.BAT"

 Next indicate where wcecompat is located:

 > set WCECOMPAT=C:\wcecompat

 Next you should run Configure:

 > perl Configure VC-CE

 Next you need to build the Makefiles:

 > ms\do_ms

 If you get errors about things not having numbers assigned then check the
 troubleshooting section in INSTALL.W32: you probably won't be able to compile
 it as it stands.

 Then from the VC++ environment at a prompt do:

 - to build static libraries:

   > nmake -f ms\ce.mak

 - or to build DLLs:

   > nmake -f ms\cedll.mak

 If all is well it should compile and you will have some static libraries and
 executables in out32, or some DLLs and executables in out32dll.  If you want
 to try the tests then make sure the ceutils are in the path and do:
 
 > cd out32
 > ..\ms\testce

ms/tencce.bat

0 → 100644
+19 −0
Original line number Diff line number Diff line
rem called by testencce

echo test %1 %2 %3 %4 %5 %6 
cecopy %input% CE:\OpenSSL
cerun CE:\OpenSSL\%ssleay% %1 %2 %3 %4 %5 %6 -e -bufsize 113 -k test -in \OpenSSL\%input% -out \OpenSSL\%tmp1%
cerun CE:\OpenSSL\%ssleay% %1 %2 %3 %4 %5 %6 -d -bufsize 157 -k test -in \OpenSSL\%tmp1% -out \OpenSSL\%out1%
del %out1% >nul 2>&1
cecopy CE:\OpenSSL\%out1% .
%cmp% %input% %out1%
if errorlevel 1 goto err

echo test base64 %1 %2 %3 %4 %5 %6 
cerun CE:\OpenSSL\%ssleay% %1 %2 %3 %4 %5 %6 -a -e -bufsize 113 -k test -in \OpenSSL\%input% -out \OpenSSL\%tmp1%
cerun CE:\OpenSSL\%ssleay% %1 %2 %3 %4 %5 %6 -a -d -bufsize 157 -k test -in \OpenSSL\%tmp1% -out \OpenSSL\%out1%
del %out1% >nul 2>&1
cecopy CE:\OpenSSL\%out1% .
%cmp% %input% %out1%

:err

ms/testce.bat

0 → 100644
+234 −0
Original line number Diff line number Diff line
@echo off

cemkdir CE:\OpenSSL

set test=..\ms
set opath=%PATH%
PATH=..\ms;%PATH%
cecopy ..\apps\openssl.cnf CE:\OpenSSL
set OPENSSL_CONF=\OpenSSL\openssl.cnf
set HOME=\OpenSSL
set CERUN_PASS_ENV=OPENSSL_CONF HOME

rem run this from inside the bin directory

rem Copy the DLL's (though they'll only exist if we're in out32dll)
if exist libeay32.dll cecopy libeay32.dll CE:\OpenSSL
if exist ssleay32.dll cecopy ssleay32.dll CE:\OpenSSL

echo rsa_test
call %test%\testce2 rsa_test
if errorlevel 1 goto done

echo destest
call %test%\testce2 destest
if errorlevel 1 goto done

echo ideatest
call %test%\testce2 ideatest
if errorlevel 1 goto done

echo bftest
call %test%\testce2 bftest
if errorlevel 1 goto done

echo shatest
call %test%\testce2 shatest
if errorlevel 1 goto done

echo sha1test
call %test%\testce2 sha1test
if errorlevel 1 goto done

echo md5test
call %test%\testce2 md5test
if errorlevel 1 goto done

echo md2test
call %test%\testce2 md2test
if errorlevel 1 goto done

echo mdc2test
call %test%\testce2 mdc2test
if errorlevel 1 goto done

echo rc2test
call %test%\testce2 rc2test
if errorlevel 1 goto done

echo rc4test
call %test%\testce2 rc4test
if errorlevel 1 goto done

echo randtest
call %test%\testce2 randtest
if errorlevel 1 goto done

echo dhtest
call %test%\testce2 dhtest
if errorlevel 1 goto done

echo exptest
call %test%\testce2 exptest
if errorlevel 1 goto done

echo dsatest
call %test%\testce2 dsatest
if errorlevel 1 goto done

echo testenc
call %test%\testencce openssl.exe
if errorlevel 1 goto done

echo testpem
call %test%\testpemce openssl.exe
if errorlevel 1 goto done

cecopy openssl.exe CE:\OpenSSL

echo verify
copy ..\certs\*.pem cert.tmp >nul
cecopy cert.tmp CE:\OpenSSL
cemkdir CE:\OpenSSL\certs
rem cecopy ..\certs\*.pem CE:\OpenSSL\certs
cecopy ..\certs\ca-cert.pem CE:\OpenSSL\certs
cecopy ..\certs\dsa-ca.pem CE:\OpenSSL\certs
cecopy ..\certs\dsa-pca.pem CE:\OpenSSL\certs
cecopy ..\certs\factory.pem CE:\OpenSSL\certs
cecopy ..\certs\ICE-CA.pem CE:\OpenSSL\certs
cecopy ..\certs\ICE-root.pem CE:\OpenSSL\certs
cecopy ..\certs\ICE-user.pem CE:\OpenSSL\certs
cecopy ..\certs\nortelCA.pem CE:\OpenSSL\certs
cecopy ..\certs\pca-cert.pem CE:\OpenSSL\certs
cecopy ..\certs\RegTP-4R.pem CE:\OpenSSL\certs
cecopy ..\certs\RegTP-5R.pem CE:\OpenSSL\certs
cecopy ..\certs\RegTP-6R.pem CE:\OpenSSL\certs
cecopy ..\certs\rsa-cca.pem CE:\OpenSSL\certs
cecopy ..\certs\thawteCb.pem CE:\OpenSSL\certs
cecopy ..\certs\thawteCp.pem CE:\OpenSSL\certs
cecopy ..\certs\timCA.pem CE:\OpenSSL\certs
cecopy ..\certs\tjhCA.pem CE:\OpenSSL\certs
cecopy ..\certs\vsign1.pem CE:\OpenSSL\certs
cecopy ..\certs\vsign2.pem CE:\OpenSSL\certs
cecopy ..\certs\vsign3.pem CE:\OpenSSL\certs
cecopy ..\certs\vsignss.pem CE:\OpenSSL\certs
cecopy ..\certs\vsigntca.pem CE:\OpenSSL\certs
cerun CE:\OpenSSL\openssl verify -CAfile \OpenSSL\cert.tmp \OpenSSL\certs\*.pem

echo testss
call %test%\testssce openssl.exe
if errorlevel 1 goto done

cecopy ssltest.exe CE:\OpenSSL
cecopy ..\apps\server.pem CE:\OpenSSL
cecopy ..\apps\client.pem CE:\OpenSSL

echo test sslv2
cerun CE:\OpenSSL\ssltest -ssl2
if errorlevel 1 goto done

echo test sslv2 with server authentication
cerun CE:\OpenSSL\ssltest -ssl2 -server_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2 with client authentication
cerun CE:\OpenSSL\ssltest -ssl2 -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2 with both client and server authentication
cerun CE:\OpenSSL\ssltest -ssl2 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv3
cerun CE:\OpenSSL\ssltest -ssl3
if errorlevel 1 goto done

echo test sslv3 with server authentication
cerun CE:\OpenSSL\ssltest -ssl3 -server_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv3 with client authentication
cerun CE:\OpenSSL\ssltest -ssl3 -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv3 with both client and server authentication
cerun CE:\OpenSSL\ssltest -ssl3 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2/sslv3
cerun CE:\OpenSSL\ssltest
if errorlevel 1 goto done

echo test sslv2/sslv3 with server authentication
cerun CE:\OpenSSL\ssltest -server_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2/sslv3 with client authentication
cerun CE:\OpenSSL\ssltest -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2/sslv3 with both client and server authentication
cerun CE:\OpenSSL\ssltest -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2 via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl2
if errorlevel 1 goto done

echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -dhe1024dsa -v
if errorlevel 1 goto done

echo test sslv2 with server authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -server_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2 with client authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2 with both client and server authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv3 via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl3
if errorlevel 1 goto done

echo test sslv3 with server authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -server_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv3 with client authentication  via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv3 with both client and server authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2/sslv3 via BIO pair
cerun CE:\OpenSSL\ssltest
if errorlevel 1 goto done

echo test sslv2/sslv3 with server authentication
cerun CE:\OpenSSL\ssltest -bio_pair -server_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2/sslv3 with client authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

echo test sslv2/sslv3 with both client and server authentication via BIO pair
cerun CE:\OpenSSL\ssltest -bio_pair -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
if errorlevel 1 goto done

del cert.tmp

echo passed all tests
goto end
:done
echo problems.....
:end
PATH=%opath%

ms/testce2.bat

0 → 100644
+2 −0
Original line number Diff line number Diff line
cecopy %1.exe CE:\OpenSSL
cerun CE:\OpenSSL\%1 %2 %3 %4 %5 %6 %7 %8 %9

ms/testencce.bat

0 → 100644
+97 −0
Original line number Diff line number Diff line
@echo off
echo start testenc

path=..\ms;%path%
set ssleay=%1%
copy ..\ms\testenc.bat >nul
set input=testenc.bat
set tmp1=cipher.out
set out1=clear.out
set cmp=perl ..\ms\cmp.pl

cecopy %ssleay% CE:\OpenSSL

cd
call tencce.bat enc
if errorlevel 1 goto err

call tencce.bat rc4
if errorlevel 1 goto err

call tencce.bat des-cfb
if errorlevel 1 goto err

call tencce.bat des-ede-cfb
if errorlevel 1 goto err

call tencce.bat des-ede3-cfb
if errorlevel 1 goto err

call tencce.bat des-ofb
if errorlevel 1 goto err

call tencce.bat des-ede-ofb
if errorlevel 1 goto err

call tencce.bat des-ede3-ofb
if errorlevel 1 goto err

call tencce.bat des-ecb
if errorlevel 1 goto err

call tencce.bat des-ede
if errorlevel 1 goto err

call tencce.bat des-ede3
if errorlevel 1 goto err

call tencce.bat des-cbc
if errorlevel 1 goto err

call tencce.bat des-ede-cbc
if errorlevel 1 goto err

call tencce.bat des-ede3-cbc
if errorlevel 1 goto err

call tencce.bat idea-ecb
if errorlevel 1 goto err

call tencce.bat idea-cfb
if errorlevel 1 goto err

call tencce.bat idea-ofb
if errorlevel 1 goto err

call tencce.bat idea-cbc
if errorlevel 1 goto err

call tencce.bat rc2-ecb
if errorlevel 1 goto err

call tencce.bat rc2-cfb
if errorlevel 1 goto err

call tencce.bat rc2-ofb
if errorlevel 1 goto err

call tencce.bat rc2-cbc
if errorlevel 1 goto err

call tencce.bat bf-ecb
if errorlevel 1 goto err

call tencce.bat bf-cfb
if errorlevel 1 goto err

call tencce.bat bf-ofb
if errorlevel 1 goto err

call tencce.bat bf-cbc
if errorlevel 1 goto err

echo OK
del %out1% >nul 2>&1
del %tmp1% >nul 2>&1
:err
Loading