Fixes for MSVC6

(cherry picked from commit 7a2538ee38)
This commit is contained in:
Paul Bakker 2012-11-02 10:59:36 +00:00
parent 5f5593a30e
commit cf45a56631
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Bugfix
* Memory leak when using RSA_PKCS_V21 operations fixed * Memory leak when using RSA_PKCS_V21 operations fixed
* Handle encryption with private key and decryption with public key as per * Handle encryption with private key and decryption with public key as per
RFC 2313 RFC 2313
* Fixes for MSVC6
Security Security
* Fixed potential memory zeroization on miscrafted RSA key (found by Eloi * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi

View File

@ -40,10 +40,10 @@
#if !defined(POLARSSL_NO_PLATFORM_ENTROPY) #if !defined(POLARSSL_NO_PLATFORM_ENTROPY)
#if defined(_WIN32) #if defined(_WIN32)
#include <windows.h>
#if !defined(_WIN32_WINNT) #if !defined(_WIN32_WINNT)
#define _WIN32_WINNT 0x0400 #define _WIN32_WINNT 0x0400
#endif #endif
#include <windows.h>
#include <wincrypt.h> #include <wincrypt.h>
int platform_entropy_poll( void *data, unsigned char *output, size_t len, int platform_entropy_poll( void *data, unsigned char *output, size_t len,