Loading crypto/cryptlib.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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,...) Loading crypto/dso/dso_win32.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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 Loading crypto/md2/md2test.c +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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) Loading crypto/rand/rand_win.c +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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 Loading ssl/ssltest.c +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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 Loading
crypto/cryptlib.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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,...) Loading
crypto/dso/dso_win32.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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 Loading
crypto/md2/md2test.c +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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) Loading
crypto/rand/rand_win.c +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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 Loading
ssl/ssltest.c +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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