Windows CE updates, contributed by Steven Reddie <smr@essemer.com.au>

This commit is contained in:
Richard Levitte 2002-12-03 14:20:44 +00:00
parent e7a285694e
commit 7a1f92fdc3
15 changed files with 24 additions and 20 deletions

View File

@ -11,6 +11,9 @@
You also need Perl for Win32. You will need ActiveState Perl, available You also need Perl for Win32. You will need ActiveState Perl, available
from http://www.activestate.com/ActivePerl. from http://www.activestate.com/ActivePerl.
Windows CE support in OpenSSL relies on wcecompat. All Windows CE specific
issues should be directed to www.essemer.com.au.
The C Runtime Library implementation for Windows CE that is included with The C Runtime Library implementation for Windows CE that is included with
Microsoft eMbedded Visual C++ 3.0 is incomplete and in some places Microsoft eMbedded Visual C++ 3.0 is incomplete and in some places
incorrect. wcecompat plugs the holes and tries to bring the Windows CE incorrect. wcecompat plugs the holes and tries to bring the Windows CE

View File

@ -121,9 +121,6 @@
#ifndef OPENSSL_NO_FP_API #ifndef OPENSSL_NO_FP_API
#include <stdio.h> #include <stdio.h>
#ifdef OPENSSL_SYS_WINCE
#include <stdio_extras.h>
#endif
#endif #endif
#include <openssl/stack.h> #include <openssl/stack.h>

View File

@ -112,9 +112,6 @@
#include <string.h> #include <string.h>
#include <openssl/des.h> #include <openssl/des.h>
#include <openssl/ui.h> #include <openssl/ui.h>
#ifdef OPENSSL_SYS_WINCE
#include <stdio_extras.h> /* BUFSIZ */
#endif
int DES_read_password(DES_cblock *key, const char *prompt, int verify) int DES_read_password(DES_cblock *key, const char *prompt, int verify)
{ {

View File

@ -58,9 +58,6 @@
#include <openssl/e_os2.h> #include <openssl/e_os2.h>
#include <stdio.h> #include <stdio.h>
#ifdef OPENSSL_SYS_WINCE
#include <stdlib_extras.h>
#endif
#include <string.h> #include <string.h>
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>

View File

@ -61,6 +61,7 @@
#include <string.h> #include <string.h>
#include <openssl/md2.h> #include <openssl/md2.h>
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#include <openssl/crypto.h>
const char *MD2_version="MD2" OPENSSL_VERSION_PTEXT; const char *MD2_version="MD2" OPENSSL_VERSION_PTEXT;

View File

@ -59,6 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <openssl/md4.h> #include <openssl/md4.h>
#include <openssl/crypto.h>
#ifdef CHARSET_EBCDIC #ifdef CHARSET_EBCDIC
#include <openssl/ebcdic.h> #include <openssl/ebcdic.h>

View File

@ -59,6 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <openssl/md5.h> #include <openssl/md5.h>
#include <openssl/crypto.h>
#ifdef CHARSET_EBCDIC #ifdef CHARSET_EBCDIC
#include <openssl/ebcdic.h> #include <openssl/ebcdic.h>

View File

@ -211,7 +211,7 @@ int RAND_poll(void)
osverinfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO) ; osverinfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO) ;
GetVersionEx( &osverinfo ) ; GetVersionEx( &osverinfo ) ;
#ifdef OPENSSL_SYS_WINCE #if defined(OPENSSL_SYS_WINCE) && WCEPLATFORM!=MS_HPC_PRO
/* poll the CryptoAPI PRNG */ /* poll the CryptoAPI PRNG */
/* The CryptoAPI returns sizeof(buf) bytes of randomness */ /* The CryptoAPI returns sizeof(buf) bytes of randomness */
if (CryptAcquireContext(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) if (CryptAcquireContext(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))

View File

@ -59,6 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <openssl/ripemd.h> #include <openssl/ripemd.h>
#include <openssl/crypto.h>
unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
unsigned char *md) unsigned char *md)

View File

@ -59,6 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/crypto.h>
#ifndef OPENSSL_NO_SHA1 #ifndef OPENSSL_NO_SHA1
unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md) unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md)

View File

@ -59,6 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/crypto.h>
#ifndef OPENSSL_NO_SHA0 #ifndef OPENSSL_NO_SHA0
unsigned char *SHA(const unsigned char *d, unsigned long n, unsigned char *md) unsigned char *SHA(const unsigned char *d, unsigned long n, unsigned char *md)

View File

@ -55,9 +55,6 @@
#include <string.h> #include <string.h>
#include <openssl/ui.h> #include <openssl/ui.h>
#ifdef OPENSSL_SYS_WINCE
#include <stdio_extras.h> /* BUFSIZ */
#endif
int UI_UTIL_read_pw_string(char *buf,int length,const char *prompt,int verify) int UI_UTIL_read_pw_string(char *buf,int length,const char *prompt,int verify)
{ {

3
e_os.h
View File

@ -230,9 +230,6 @@ extern "C" {
# include <fcntl.h> # include <fcntl.h>
# ifdef OPENSSL_SYS_WINCE # ifdef OPENSSL_SYS_WINCE
# include <stdio_extras.h>
# include <stdlib_extras.h>
# include <string_extras.h>
# include <winsock_extras.h> # include <winsock_extras.h>
# endif # endif

View File

@ -273,6 +273,17 @@ $defs= <<"EOF";
# The one monster makefile better suits building in non-unix # The one monster makefile better suits building in non-unix
# environments. # environments.
EOF
if ($platform eq "VC-CE")
{
$defs.= <<"EOF";
!INCLUDE <\$(WCECOMPAT)/wcedefs.mak>
EOF
}
$defs.= <<"EOF";
INSTALLTOP=$INSTALLTOP INSTALLTOP=$INSTALLTOP
# Set your compiler options # Set your compiler options

View File

@ -12,8 +12,8 @@ $rm='del';
# C compiler stuff # C compiler stuff
$cc='$(CC)'; $cc='$(CC)';
$cflags=' /W3 /WX /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -D$(TARGETCPU) -D_$(TARGETCPU)_ -DUNDER_CE=300 -D_WIN32_CE=300 -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -I$(WCECOMPAT)/include'; $cflags=' /W3 /WX /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo $(WCETARGETDEFS) -DUNICODE -D_UNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -I$(WCECOMPAT)/include';
$lflags='/nologo /subsystem:windowsce,3.00 /machine:$(TARGETCPU) /opt:ref'; $lflags='/nologo /subsystem:windowsce,$(WCELDVERSION) /machine:$(WCELDMACHINE) /opt:ref';
$mlflags=''; $mlflags='';
$out_def='out32_$(TARGETCPU)'; $out_def='out32_$(TARGETCPU)';
@ -36,8 +36,7 @@ $efile="/out:";
$exep='.exe'; $exep='.exe';
if ($no_sock) if ($no_sock)
{ $ex_libs=""; } { $ex_libs=""; }
else { $ex_libs='winsock.lib $(WCECOMPAT)/lib/wcecompatex.lib'; } else { $ex_libs='winsock.lib $(WCECOMPAT)/lib/wcecompatex.lib $(WCELDFLAGS)'; }
#else { $ex_libs='winsock.lib coredll.lib $(WCECOMPAT)/lib/wcecompatex.lib'; }
# static library stuff # static library stuff
$mklib='lib'; $mklib='lib';