1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 | #ifndef SOFTPUB_H
|
---|
7 | #define SOFTPUB_H
|
---|
8 |
|
---|
9 | #include <wintrust.h>
|
---|
10 |
|
---|
11 | #ifdef __cplusplus
|
---|
12 | extern "C" {
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #include <pshpack8.h>
|
---|
16 |
|
---|
17 | #define SP_POLICY_PROVIDER_DLL_NAME L"WINTRUST.DLL"
|
---|
18 |
|
---|
19 | #define WINTRUST_ACTION_GENERIC_VERIFY_V2 { 0xaac56b,0xcd44,0x11d0,{ 0x8c,0xc2,0x0,0xc0,0x4f,0xc2,0x95,0xee } }
|
---|
20 |
|
---|
21 | #define SP_INIT_FUNCTION L"SoftpubInitialize"
|
---|
22 | #define SP_OBJTRUST_FUNCTION L"SoftpubLoadMessage"
|
---|
23 | #define SP_SIGTRUST_FUNCTION L"SoftpubLoadSignature"
|
---|
24 | #define SP_CHKCERT_FUNCTION L"SoftpubCheckCert"
|
---|
25 | #define SP_FINALPOLICY_FUNCTION L"SoftpubAuthenticode"
|
---|
26 | #define SP_CLEANUPPOLICY_FUNCTION L"SoftpubCleanup"
|
---|
27 |
|
---|
28 | #define WINTRUST_ACTION_TRUSTPROVIDER_TEST { 0x573e31f8,0xddba,0x11d0,{ 0x8c,0xcb,0x0,0xc0,0x4f,0xc2,0x95,0xee } }
|
---|
29 |
|
---|
30 | #define SP_TESTDUMPPOLICY_FUNCTION_TEST L"SoftpubDumpStructure"
|
---|
31 |
|
---|
32 | #define WINTRUST_ACTION_GENERIC_CERT_VERIFY { 0x189a3842,0x3041,0x11d1,{ 0x85,0xe1,0x0,0xc0,0x4f,0xc2,0x95,0xee } }
|
---|
33 |
|
---|
34 | #define SP_GENERIC_CERT_INIT_FUNCTION L"SoftpubDefCertInit"
|
---|
35 |
|
---|
36 | #define WINTRUST_ACTION_GENERIC_CHAIN_VERIFY { 0xfc451c16,0xac75,0x11d1,{ 0xb4,0xb8,0x00,0xc0,0x4f,0xb6,0x6e,0xa0 } }
|
---|
37 | #define GENERIC_CHAIN_FINALPOLICY_FUNCTION L"GenericChainFinalProv"
|
---|
38 | #define GENERIC_CHAIN_CERTTRUST_FUNCTION L"GenericChainCertificateTrust"
|
---|
39 |
|
---|
40 | typedef struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
|
---|
41 | WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO,*PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO;
|
---|
42 |
|
---|
43 | struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO {
|
---|
44 | __C89_NAMELESS union {
|
---|
45 | DWORD cbStruct;
|
---|
46 | DWORD cbSize;
|
---|
47 | };
|
---|
48 | PCCERT_CHAIN_CONTEXT pChainContext;
|
---|
49 | DWORD dwSignerType;
|
---|
50 | PCMSG_SIGNER_INFO pMsgSignerInfo;
|
---|
51 | DWORD dwError;
|
---|
52 | DWORD cCounterSigner;
|
---|
53 | PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO *rgpCounterSigner;
|
---|
54 | };
|
---|
55 |
|
---|
56 | typedef HRESULT (WINAPI *PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK)(PCRYPT_PROVIDER_DATA pProvData,DWORD dwStepError,DWORD dwRegPolicySettings,DWORD cSigner,PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO *rgpSigner,void *pvPolicyArg);
|
---|
57 |
|
---|
58 | typedef struct _WTD_GENERIC_CHAIN_POLICY_CREATE_INFO {
|
---|
59 | __C89_NAMELESS union {
|
---|
60 | DWORD cbStruct;
|
---|
61 | DWORD cbSize;
|
---|
62 | };
|
---|
63 | HCERTCHAINENGINE hChainEngine;
|
---|
64 | PCERT_CHAIN_PARA pChainPara;
|
---|
65 | DWORD dwFlags;
|
---|
66 | void *pvReserved;
|
---|
67 | } WTD_GENERIC_CHAIN_POLICY_CREATE_INFO,*PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO;
|
---|
68 |
|
---|
69 | typedef struct _WTD_GENERIC_CHAIN_POLICY_DATA {
|
---|
70 | __C89_NAMELESS union {
|
---|
71 | DWORD cbStruct;
|
---|
72 | DWORD cbSize;
|
---|
73 | };
|
---|
74 | PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pSignerChainInfo;
|
---|
75 | PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pCounterSignerChainInfo;
|
---|
76 | PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK pfnPolicyCallback;
|
---|
77 | void *pvPolicyArg;
|
---|
78 | } WTD_GENERIC_CHAIN_POLICY_DATA,*PWTD_GENERIC_CHAIN_POLICY_DATA;
|
---|
79 |
|
---|
80 | #define HTTPSPROV_ACTION { 0x573e31f8,0xaaba,0x11d0,{ 0x8c,0xcb,0x0,0xc0,0x4f,0xc2,0x95,0xee } }
|
---|
81 |
|
---|
82 | #define HTTPS_FINALPOLICY_FUNCTION L"HTTPSFinalProv"
|
---|
83 | #define HTTPS_CHKCERT_FUNCTION L"HTTPSCheckCertProv"
|
---|
84 | #define HTTPS_CERTTRUST_FUNCTION L"HTTPSCertificateTrust"
|
---|
85 |
|
---|
86 | #define OFFICESIGN_ACTION_VERIFY { 0x5555c2cd,0x17fb,0x11d1,{ 0x85,0xc4,0x0,0xc0,0x4f,0xc2,0x95,0xee } }
|
---|
87 |
|
---|
88 | #define OFFICE_POLICY_PROVIDER_DLL_NAME SP_POLICY_PROVIDER_DLL_NAME
|
---|
89 | #define OFFICE_INITPROV_FUNCTION L"OfficeInitializePolicy"
|
---|
90 | #define OFFICE_CLEANUPPOLICY_FUNCTION L"OfficeCleanupPolicy"
|
---|
91 |
|
---|
92 | #define DRIVER_ACTION_VERIFY { 0xf750e6c3,0x38ee,0x11d1,{ 0x85,0xe5,0x0,0xc0,0x4f,0xc2,0x95,0xee } }
|
---|
93 |
|
---|
94 | #define DRIVER_INITPROV_FUNCTION L"DriverInitializePolicy"
|
---|
95 | #define DRIVER_FINALPOLPROV_FUNCTION L"DriverFinalPolicy"
|
---|
96 | #define DRIVER_CLEANUPPOLICY_FUNCTION L"DriverCleanupPolicy"
|
---|
97 |
|
---|
98 | typedef struct DRIVER_VER_MAJORMINOR_ {
|
---|
99 | DWORD dwMajor;
|
---|
100 | DWORD dwMinor;
|
---|
101 | } DRIVER_VER_MAJORMINOR;
|
---|
102 |
|
---|
103 | typedef struct DRIVER_VER_INFO_ {
|
---|
104 | DWORD cbStruct;
|
---|
105 | ULONG_PTR dwReserved1;
|
---|
106 | ULONG_PTR dwReserved2;
|
---|
107 | DWORD dwPlatform;
|
---|
108 | DWORD dwVersion;
|
---|
109 | WCHAR wszVersion[MAX_PATH];
|
---|
110 | WCHAR wszSignedBy[MAX_PATH];
|
---|
111 | PCCERT_CONTEXT pcSignerCertContext;
|
---|
112 | DRIVER_VER_MAJORMINOR sOSVersionLow;
|
---|
113 | DRIVER_VER_MAJORMINOR sOSVersionHigh;
|
---|
114 | DWORD dwBuildNumberLow;
|
---|
115 | DWORD dwBuildNumberHigh;
|
---|
116 | } DRIVER_VER_INFO,*PDRIVER_VER_INFO;
|
---|
117 |
|
---|
118 | #include <poppack.h>
|
---|
119 |
|
---|
120 | #ifdef __cplusplus
|
---|
121 | }
|
---|
122 | #endif
|
---|
123 | #endif
|
---|