This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] add CRYPTPROTECT definitions to w32api's wincrypt.h


I am needing CRYPTPROTECT definitions in wincrypt.h and have attached a patch to add them.

Regards,

-Matthias Miller
--- wincrypt.h.orig	Thu Sep 14 04:19:36 2006
+++ wincrypt.h	Thu Sep 14 04:20:37 2006
@@ -371,6 +371,21 @@
 #define SCHANNEL_MAC_KEY    0x00000000
 #define SCHANNEL_ENC_KEY    0x00000001
 #define INTERNATIONAL_USAGE 0x00000001
+#define CRYPTPROTECT_DEFAULT_PROVIDER   { 0xdf9d8cd0, 0x1501, 0x11d1, {0x8c, 0x7a, 0x00, 0xc0, 0x4f, 0xc2, 0x97, 0xeb} }
+#define CRYPTPROTECT_PROMPT_ON_UNPROTECT     0x1
+#define CRYPTPROTECT_PROMPT_ON_PROTECT       0x2
+#define CRYPTPROTECT_PROMPT_RESERVED         0x04
+#define CRYPTPROTECT_PROMPT_STRONG           0x08
+#define CRYPTPROTECT_PROMPT_REQUIRE_STRONG   0x10
+#define CRYPTPROTECT_UI_FORBIDDEN        0x1
+#define CRYPTPROTECT_LOCAL_MACHINE       0x4
+#define CRYPTPROTECT_CRED_SYNC           0x8
+#define CRYPTPROTECT_AUDIT              0x10
+#define CRYPTPROTECT_NO_RECOVERY        0x20
+#define CRYPTPROTECT_VERIFY_PROTECTION  0x40
+#define CRYPTPROTECT_CRED_REGENERATE    0x80
+#define CRYPTPROTECT_FIRST_RESERVED_FLAGVAL    0x0FFFFFFF
+#define CRYPTPROTECT_LAST_RESERVED_FLAGVAL     0xFFFFFFFF
 
 #define szOID_RSA 	"1.2.840.113549"
 #define szOID_PKCS 	"1.2.840.113549.1"
@@ -785,6 +800,13 @@
 	BYTE* pbOuterString;
 	DWORD cbOuterString;
 } HMAC_INFO, *PHMAC_INFO;
+typedef struct  _CRYPTPROTECT_PROMPTSTRUCT
+{
+    DWORD cbSize;
+    DWORD dwPromptFlags;
+    HWND  hwndApp;
+    LPCWSTR szPrompt;
+} CRYPTPROTECT_PROMPTSTRUCT, *PCRYPTPROTECT_PROMPTSTRUCT;
 
 BOOL WINAPI CertCloseStore(HCERTSTORE,DWORD);
 BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE,PCCERT_CONTEXT,LPFILETIME,HCERTSTORE,PCERT_CHAIN_PARA,DWORD,LPVOID,PCCERT_CHAIN_CONTEXT*);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]