Memory sanitizing on BLOB free removed, since BLOBS are encrypted from d15b7066cd on

This commit is contained in:
2016-07-20 08:48:28 +02:00
parent 4630b32f77
commit 40c992e1a5
3 changed files with 8 additions and 2 deletions

View File

@@ -21,6 +21,10 @@
#define IDR_EAP_KEY_PUBLIC 1
#define IDR_EAP_KEY_PRIVATE 2
#ifndef EAP_ENCRYPT_BLOBS
#define EAP_ENCRYPT_BLOBS 1
#endif
#if !defined(RC_INVOKED) && !defined(MIDL_PASS)
#include <sal.h>

View File

@@ -543,7 +543,7 @@ namespace eap
_In_ DWORD dwDataInSize,
_Out_ EAP_ERROR **ppEapError)
{
#if 1
#if EAP_ENCRYPT_BLOBS
// Prepare cryptographics provider.
winstd::crypt_prov cp;
if (!cp.create(NULL, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT)) {
@@ -590,7 +590,7 @@ namespace eap
_Out_ DWORD *pdwDataOutSize,
_Out_ EAP_ERROR **ppEapError)
{
#if 1
#if EAP_ENCRYPT_BLOBS
// Allocate BLOB.
std::vector<unsigned char, winstd::sanitizing_allocator<unsigned char> > data;
data.resize(eapserial::get_pk_size(record));