mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
48db456801
By default Windows processes have wide open ACLs which allow interference by other processes running as the same user. Adjust our ACL to make this a bit harder. Because it's useful to protect PuTTYtel as well, carve winsecur.c into advapi functions and wincapi.c for crypt32 functions.
19 lines
390 B
C
19 lines
390 B
C
/*
|
|
* wincapi.h: Windows Crypto API functions defined in wincrypt.c
|
|
* that use the crypt32 library. Also centralises the machinery
|
|
* for dynamically loading that library.
|
|
*/
|
|
|
|
#if !defined NO_SECURITY
|
|
|
|
#ifndef WINCAPI_GLOBAL
|
|
#define WINCAPI_GLOBAL extern
|
|
#endif
|
|
|
|
DECL_WINDOWS_FUNCTION(WINCAPI_GLOBAL, BOOL, CryptProtectMemory,
|
|
(LPVOID,DWORD,DWORD));
|
|
|
|
int got_crypt(void);
|
|
|
|
#endif
|