From 2194c4db86e473a25656c3bcc5315e9a05577981 Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Thu, 22 Nov 2007 03:16:15 +0000 Subject: [PATCH] 2007-11-21 Kevin Conaway * include/wincrypt.h (CryptProtectData, CryptUnprotectData): define. --- winsup/w32api/ChangeLog | 4 ++++ winsup/w32api/include/wincrypt.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 06abb9dfa..52f86b03e 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,7 @@ +2007-11-21 Kevin Conaway + + * include/wincrypt.h (CryptProtectData, CryptUnprotectData): define. + 2007-11-21 elsapo * include/wincrypt.h (CERT_NAME_STR_COMMA_FLAG, diff --git a/winsup/w32api/include/wincrypt.h b/winsup/w32api/include/wincrypt.h index 57fedad42..a0d33f7bc 100644 --- a/winsup/w32api/include/wincrypt.h +++ b/winsup/w32api/include/wincrypt.h @@ -1119,6 +1119,14 @@ typedef struct _CRYPTPROTECT_PROMPTSTRUCT { LPCWSTR szPrompt; } CRYPTPROTECT_PROMPTSTRUCT, *PCRYPTPROTECT_PROMPTSTRUCT; + + +/* from http://msdn2.microsoft.com/en-us/library/aa380261.aspx */ +BOOL WINAPI CryptProtectData (DATA_BLOB*, LPCWSTR, DATA_BLOB*, PVOID, CRYPTPROTECT_PROMPTSTRUCT*, DWORD, DATA_BLOB*); + +/* http://msdn2.microsoft.com/en-us/library/aa380882.aspx */ +BOOL WINAPI CryptUnprotectData (DATA_BLOB*, LPWSTR*, DATA_BLOB*, PVOID, CRYPTPROTECT_PROMPTSTRUCT*, DWORD, DATA_BLOB*); + /* from http://msdn2.microsoft.com/en-us/library/aa302402.aspx: */ #define CRYPTPROTECT_UI_FORBIDDEN 0x1 #define CRYPTPROTECT_LOCAL_MACHINE 0x4