Commit 19bd66fe authored by Andy Polyakov's avatar Andy Polyakov
Browse files

WCE update, mostly typos.

parent 45771abb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -669,9 +669,9 @@ void OPENSSL_showfatal (const char *fmta,...)
{ va_list ap;
{ va_list ap;
  TCHAR buf[256];
  TCHAR buf[256];
  const TCHAR *fmt;
  const TCHAR *fmt;
#ifdef STD_ERROR_HANDLE	/* what a dirty trick! */
  HANDLE h;
  HANDLE h;


#ifdef STD_ERROR_HANDLE	/* what a dirty trick! */
    if ((h=GetStdHandle(STD_ERROR_HANDLE)) != NULL &&
    if ((h=GetStdHandle(STD_ERROR_HANDLE)) != NULL &&
	GetFileType(h)!=FILE_TYPE_UNKNOWN)
	GetFileType(h)!=FILE_TYPE_UNKNOWN)
    {	/* must be console application */
    {	/* must be console application */
@@ -734,7 +734,7 @@ void OPENSSL_showfatal (const char *fmta,...)
    }
    }
    else
    else
#endif
#endif
	MessageBox (NULL,buf,_T("OpenSSL: FATAL"),MB_OK|MB_ICONSTOP|MB_TASKMODAL);
	MessageBox (NULL,buf,_T("OpenSSL: FATAL"),MB_OK|MB_ICONSTOP);
}
}
#else
#else
void OPENSSL_showfatal (const char *fmta,...)
void OPENSSL_showfatal (const char *fmta,...)
+2 −2
Original line number Original line Diff line number Diff line
@@ -86,13 +86,13 @@ static FARPROC GetProcAddressA(HMODULE hModule,LPCSTR lpProcName)
# undef GetProcAddress
# undef GetProcAddress
# define GetProcAddress GetProcAddressA
# define GetProcAddress GetProcAddressA


static HINSTANCE LoadLibraryA(LPCSTR *lpLibFileName)
static HINSTANCE LoadLibraryA(LPCSTR lpLibFileName)
	{
	{
	WCHAR *fnamw;
	WCHAR *fnamw;
	size_t len_0=strlen(lpLibFileName)+1,i;
	size_t len_0=strlen(lpLibFileName)+1,i;


#ifdef _MSC_VER
#ifdef _MSC_VER
	fname = (WCHAR *)_alloca (len_0*sizeof(WCHAR));
	fnamw = (WCHAR *)_alloca (len_0*sizeof(WCHAR));
#else
#else
	fnamw = (WCHAR *)alloca (len_0*sizeof(WCHAR));
	fnamw = (WCHAR *)alloca (len_0*sizeof(WCHAR));
#endif
#endif
+1 −0
Original line number Original line Diff line number Diff line
@@ -128,6 +128,7 @@ int main(int argc, char *argv[])
    if (err) printf("ERROR: %d\n", err);
    if (err) printf("ERROR: %d\n", err);
#endif
#endif
	EXIT(err);
	EXIT(err);
	return err;
	}
	}


static char *pt(unsigned char *md)
static char *pt(unsigned char *md)
+3 −1
Original line number Original line Diff line number Diff line
@@ -205,7 +205,9 @@ int RAND_poll(void)
        GetVersionEx( &osverinfo ) ;
        GetVersionEx( &osverinfo ) ;


#if defined(OPENSSL_SYS_WINCE)
#if defined(OPENSSL_SYS_WINCE)
# if defined(_WIN32_WCE) && _WIN32_WCE>=210
# if defined(_WIN32_WCE) && _WIN32_WCE>=300
/* Even though MSDN says _WIN32_WCE>=210, it doesn't seem to be available
 * in commonly available implementations prior 300... */
# ifndef CryptAcquireContext
# ifndef CryptAcquireContext
   /* reserve for broken header... */
   /* reserve for broken header... */
#  define CryptAcquireContext CryptAcquireContextW
#  define CryptAcquireContext CryptAcquireContextW
+1 −0
Original line number Original line Diff line number Diff line
@@ -893,6 +893,7 @@ end:
	CRYPTO_mem_leaks(bio_err);
	CRYPTO_mem_leaks(bio_err);
	if (bio_err != NULL) BIO_free(bio_err);
	if (bio_err != NULL) BIO_free(bio_err);
	EXIT(ret);
	EXIT(ret);
	return ret;
	}
	}


int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
Loading