mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
wincng.c: fix clear memory feature compilation with mingw
This commit is contained in:
@@ -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-----"
|
||||
|
||||
Reference in New Issue
Block a user