wincng.c: fix clear memory feature compilation with mingw

This commit is contained in:
Marc Hoersken 2015-04-03 14:48:34 +02:00
parent e113202098
commit 2d2744efdd

View File

@ -67,6 +67,15 @@
#include <wincrypt.h>
#endif
/* required for compilation of clear memory feature with mingw */
#ifdef LIBSSH2_CLEAR_MEMORY
#ifdef __MINGW32__
#ifndef SecureZeroMemory
#define SecureZeroMemory(ptr, cnt) RtlFillMemory(ptr, cnt, 0)
#endif
#endif
#endif
#define PEM_RSA_HEADER "-----BEGIN RSA PRIVATE KEY-----"
#define PEM_RSA_FOOTER "-----END RSA PRIVATE KEY-----"
#define PEM_DSA_HEADER "-----BEGIN DSA PRIVATE KEY-----"