Loading CHANGES +4 −0 Original line number Original line Diff line number Diff line Loading @@ -319,6 +319,10 @@ TODO: bug: pad x with leading zeros if necessary Changes between 0.9.6h and 0.9.7 [XX xxx 2002] Changes between 0.9.6h and 0.9.7 [XX xxx 2002] *) Add the VC-CE target, introduce the WINCE sysname, and add INSTALL.WCE and appropriate conditionals to make it build. [Steven Reddie <smr@essemer.com.au> via Richard Levitte] *) Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and *) Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and cygssl-x.y.z.dll, where x, y and z are the major, minor and cygssl-x.y.z.dll, where x, y and z are the major, minor and edit numbers of the version. edit numbers of the version. Loading Configure +3 −2 Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,7 @@ my %table=( # Windows NT, Microsoft Visual C++ 4.0 # Windows NT, Microsoft Visual C++ 4.0 "VC-NT","cl::::WINNT::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-NT","cl::::WINNT::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-CE","cl::::WINCE::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-WIN32","cl::::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-WIN32","cl::::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-WIN16","cl:::(unknown):WIN16::MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX THIRTY_TWO_BIT:::", "VC-WIN16","cl:::(unknown):WIN16::MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX THIRTY_TWO_BIT:::", "VC-W31-16","cl:::(unknown):WIN16::BN_LLONG MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX SIXTEEN_BIT:::", "VC-W31-16","cl:::(unknown):WIN16::BN_LLONG MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX SIXTEEN_BIT:::", Loading Loading @@ -571,8 +572,8 @@ my %table=( ); ); my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32 my @WinTargets=qw(VC-NT VC-CE VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-16 Mingw32 OS2-EMX); BC-32 BC-16 Mingw32 OS2-EMX); my $idx = 0; my $idx = 0; my $idx_cc = $idx++; my $idx_cc = $idx++; Loading INSTALL.W32 +2 −0 Original line number Original line Diff line number Diff line Loading @@ -2,6 +2,8 @@ INSTALLATION ON THE WIN32 PLATFORM INSTALLATION ON THE WIN32 PLATFORM ---------------------------------- ---------------------------------- [Instructions for building for Windows CE can be found in INSTALL.WCE] Heres a few comments about building OpenSSL in Windows environments. Most Heres a few comments about building OpenSSL in Windows environments. Most of this is tested on Win32 but it may also work in Win 3.1 with some of this is tested on Win32 but it may also work in Win 3.1 with some modification. modification. Loading INSTALL.WCE 0 → 100644 +63 −0 Original line number Original line 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 apps/apps.c +25 −0 Original line number Original line Diff line number Diff line Loading @@ -345,6 +345,7 @@ void program_name(char *in, char *out, int size) #ifdef OPENSSL_SYS_WIN32 #ifdef OPENSSL_SYS_WIN32 int WIN32_rename(char *from, char *to) int WIN32_rename(char *from, char *to) { { #ifndef OPENSSL_SYS_WINCE /* Windows rename gives an error if 'to' exists, so delete it /* Windows rename gives an error if 'to' exists, so delete it * first and ignore file not found errror * first and ignore file not found errror */ */ Loading @@ -352,6 +353,30 @@ int WIN32_rename(char *from, char *to) return -1; return -1; #undef rename #undef rename return rename(from, to); return rename(from, to); #else /* convert strings to UNICODE */ { BOOL result = FALSE; WCHAR* wfrom; WCHAR* wto; int i; wfrom = malloc((strlen(from)+1)*2); wto = malloc((strlen(to)+1)*2); if (wfrom != NULL && wto != NULL) { for (i=0; i<(int)strlen(from)+1; i++) wfrom[i] = (short)from[i]; for (i=0; i<(int)strlen(to)+1; i++) wto[i] = (short)to[i]; result = MoveFile(wfrom, wto); } if (wfrom != NULL) free(wfrom); if (wto != NULL) free(wto); return result; } #endif } } #endif #endif Loading Loading
CHANGES +4 −0 Original line number Original line Diff line number Diff line Loading @@ -319,6 +319,10 @@ TODO: bug: pad x with leading zeros if necessary Changes between 0.9.6h and 0.9.7 [XX xxx 2002] Changes between 0.9.6h and 0.9.7 [XX xxx 2002] *) Add the VC-CE target, introduce the WINCE sysname, and add INSTALL.WCE and appropriate conditionals to make it build. [Steven Reddie <smr@essemer.com.au> via Richard Levitte] *) Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and *) Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and cygssl-x.y.z.dll, where x, y and z are the major, minor and cygssl-x.y.z.dll, where x, y and z are the major, minor and edit numbers of the version. edit numbers of the version. Loading
Configure +3 −2 Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,7 @@ my %table=( # Windows NT, Microsoft Visual C++ 4.0 # Windows NT, Microsoft Visual C++ 4.0 "VC-NT","cl::::WINNT::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-NT","cl::::WINNT::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-CE","cl::::WINCE::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-WIN32","cl::::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-WIN32","cl::::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}::::::::::win32", "VC-WIN16","cl:::(unknown):WIN16::MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX THIRTY_TWO_BIT:::", "VC-WIN16","cl:::(unknown):WIN16::MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX THIRTY_TWO_BIT:::", "VC-W31-16","cl:::(unknown):WIN16::BN_LLONG MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX SIXTEEN_BIT:::", "VC-W31-16","cl:::(unknown):WIN16::BN_LLONG MD2_CHAR DES_UNROLL DES_PTR RC4_INDEX SIXTEEN_BIT:::", Loading Loading @@ -571,8 +572,8 @@ my %table=( ); ); my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32 my @WinTargets=qw(VC-NT VC-CE VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-16 Mingw32 OS2-EMX); BC-32 BC-16 Mingw32 OS2-EMX); my $idx = 0; my $idx = 0; my $idx_cc = $idx++; my $idx_cc = $idx++; Loading
INSTALL.W32 +2 −0 Original line number Original line Diff line number Diff line Loading @@ -2,6 +2,8 @@ INSTALLATION ON THE WIN32 PLATFORM INSTALLATION ON THE WIN32 PLATFORM ---------------------------------- ---------------------------------- [Instructions for building for Windows CE can be found in INSTALL.WCE] Heres a few comments about building OpenSSL in Windows environments. Most Heres a few comments about building OpenSSL in Windows environments. Most of this is tested on Win32 but it may also work in Win 3.1 with some of this is tested on Win32 but it may also work in Win 3.1 with some modification. modification. Loading
INSTALL.WCE 0 → 100644 +63 −0 Original line number Original line 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
apps/apps.c +25 −0 Original line number Original line Diff line number Diff line Loading @@ -345,6 +345,7 @@ void program_name(char *in, char *out, int size) #ifdef OPENSSL_SYS_WIN32 #ifdef OPENSSL_SYS_WIN32 int WIN32_rename(char *from, char *to) int WIN32_rename(char *from, char *to) { { #ifndef OPENSSL_SYS_WINCE /* Windows rename gives an error if 'to' exists, so delete it /* Windows rename gives an error if 'to' exists, so delete it * first and ignore file not found errror * first and ignore file not found errror */ */ Loading @@ -352,6 +353,30 @@ int WIN32_rename(char *from, char *to) return -1; return -1; #undef rename #undef rename return rename(from, to); return rename(from, to); #else /* convert strings to UNICODE */ { BOOL result = FALSE; WCHAR* wfrom; WCHAR* wto; int i; wfrom = malloc((strlen(from)+1)*2); wto = malloc((strlen(to)+1)*2); if (wfrom != NULL && wto != NULL) { for (i=0; i<(int)strlen(from)+1; i++) wfrom[i] = (short)from[i]; for (i=0; i<(int)strlen(to)+1; i++) wto[i] = (short)to[i]; result = MoveFile(wfrom, wto); } if (wfrom != NULL) free(wfrom); if (wto != NULL) free(wto); return result; } #endif } } #endif #endif Loading