[PATCH 2/3] include: Add CryptProtectMemory and CryptUnprotectMemory.

Alex Henrie alexhenrie24 at gmail.com
Tue Aug 15 10:19:52 CDT 2017


2017-08-15 9:08 GMT-06:00 Michael Stefaniuc <mstefani at winehq.org>:
> On 08/15/2017 05:00 PM, Alex Henrie wrote:
>> Needed for PuTTY to compile with Winelib.
>>
>> Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
>> ---
>>  include/wincrypt.h | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/include/wincrypt.h b/include/wincrypt.h
>> index abbe99f245..058798c4f4 100644
>> --- a/include/wincrypt.h
>> +++ b/include/wincrypt.h
>> @@ -4428,6 +4428,9 @@ BOOL WINAPI CryptUnprotectData( DATA_BLOB* pDataIn, LPWSTR* ppszDataDescr,
>>   DATA_BLOB* pOptionalEntropy, PVOID pvReserved,
>>   CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, DWORD dwFlags, DATA_BLOB* pDataOut );
>>
>> +BOOL WINAPI CryptProtectMemory(void *pData, DWORD cbData, DWORD dwFlags);
>> +BOOL WINAPI CryptUnrotectMemory(void *pData, DWORD cbData, DWORD dwFlags);
> Isn't that missing a p^ ?

Yes, thanks for catching that. Actually PuTTY only uses
CryptProtectMemory, but I thought it was a good idea to add both
functions.

-Alex



More information about the wine-devel mailing list