Skip to content

Commit

Permalink
Revert "wincng.c: fix clear memory feature compilation with mingw"
Browse files Browse the repository at this point in the history
This reverts commit 2d2744e.

Autobuilds show that this did not solve the issue.
And it seems like RtlFillMemory is defined to memset,
which would be optimized out by some compilers.
  • Loading branch information
mback2k committed Apr 3, 2015
1 parent 2d2744e commit 0340d45
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/wincng.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,6 @@
#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-----"
Expand Down

0 comments on commit 0340d45

Please sign in to comment.