Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/Security/Cryptography/Sip/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("crypt32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CryptSIPAddProvider(psnewprov : *mut SIP_ADD_NEWPROVIDER) -> super::super::super::Foundation:: BOOL);
3 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
4 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPCreateIndirectData(psubjectinfo : *mut SIP_SUBJECTINFO, pcbindirectdata : *mut u32, pindirectdata : *mut SIP_INDIRECT_DATA) -> super::super::super::Foundation:: BOOL);
5 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
6 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPGetCaps(psubjinfo : *const SIP_SUBJECTINFO, pcaps : *mut SIP_CAP_SET_V3) -> super::super::super::Foundation:: BOOL);
7 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
8 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPGetSealedDigest(psubjectinfo : *const SIP_SUBJECTINFO, psig : *const u8, dwsig : u32, pbdigest : *mut u8, pcbdigest : *mut u32) -> super::super::super::Foundation:: BOOL);
9 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
10 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPGetSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, pdwencodingtype : *mut super:: CERT_QUERY_ENCODING_TYPE, dwindex : u32, pcbsigneddatamsg : *mut u32, pbsigneddatamsg : *mut u8) -> super::super::super::Foundation:: BOOL);
11 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
12 ::windows_targets::link!("crypt32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPLoad(pgsubject : *const ::windows_sys::core::GUID, dwflags : u32, psipdispatch : *mut SIP_DISPATCH_INFO) -> super::super::super::Foundation:: BOOL);
13 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
14 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPPutSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwencodingtype : super:: CERT_QUERY_ENCODING_TYPE, pdwindex : *mut u32, cbsigneddatamsg : u32, pbsigneddatamsg : *mut u8) -> super::super::super::Foundation:: BOOL);
15 #[cfg(feature = "Win32_Foundation")]
16 ::windows_targets::link!("crypt32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CryptSIPRemoveProvider(pgprov : *mut ::windows_sys::core::GUID) -> super::super::super::Foundation:: BOOL);
17 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
18 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPRemoveSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwindex : u32) -> super::super::super::Foundation:: BOOL);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("crypt32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CryptSIPRetrieveSubjectGuid(filename : ::windows_sys::core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut ::windows_sys::core::GUID) -> super::super::super::Foundation:: BOOL);
21 #[cfg(feature = "Win32_Foundation")]
22 ::windows_targets::link!("crypt32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename : ::windows_sys::core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut ::windows_sys::core::GUID) -> super::super::super::Foundation:: BOOL);
23 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
24 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"] fn CryptSIPVerifyIndirectData(psubjectinfo : *mut SIP_SUBJECTINFO, pindirectdata : *mut SIP_INDIRECT_DATA) -> super::super::super::Foundation:: BOOL);
25 pub const MSSIP_ADDINFO_BLOB: u32 = 3u32;
26 pub const MSSIP_ADDINFO_CATMEMBER: u32 = 2u32;
27 pub const MSSIP_ADDINFO_FLAT: u32 = 1u32;
28 pub const MSSIP_ADDINFO_NONE: u32 = 0u32;
29 pub const MSSIP_ADDINFO_NONMSSIP: u32 = 500u32;
30 pub const MSSIP_FLAGS_MULTI_HASH: u32 = 262144u32;
31 pub const MSSIP_FLAGS_PROHIBIT_RESIZE_ON_CREATE: u32 = 65536u32;
32 pub const MSSIP_FLAGS_USE_CATALOG: u32 = 131072u32;
33 pub const SIP_CAP_FLAG_SEALING: u32 = 1u32;
34 pub const SIP_CAP_SET_CUR_VER: u32 = 3u32;
35 pub const SIP_CAP_SET_VERSION_2: u32 = 2u32;
36 pub const SIP_CAP_SET_VERSION_3: u32 = 3u32;
37 pub const SIP_MAX_MAGIC_NUMBER: u32 = 4u32;
38 pub const SPC_MARKER_CHECK_CURRENTLY_SUPPORTED_FLAGS: u32 = 1u32;
39 pub const SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG: u32 = 1u32;
40 pub const SPC_RELAXED_PE_MARKER_CHECK: u32 = 2048u32;
41 #[repr(C)]
42 pub struct MS_ADDINFO_BLOB {
43 pub cbStruct: u32,
44 pub cbMemObject: u32,
45 pub pbMemObject: *mut u8,
46 pub cbMemSignedMsg: u32,
47 pub pbMemSignedMsg: *mut u8,
48 }
49 impl ::core::marker::Copy for MS_ADDINFO_BLOB {}
50 impl ::core::clone::Clone for MS_ADDINFO_BLOB {
51 fn clone(&self) -> Self {
52 *self
53 }
54 }
55 #[repr(C)]
56 pub struct MS_ADDINFO_FLAT {
57 pub cbStruct: u32,
58 pub pIndirectData: *mut SIP_INDIRECT_DATA,
59 }
60 impl ::core::marker::Copy for MS_ADDINFO_FLAT {}
61 impl ::core::clone::Clone for MS_ADDINFO_FLAT {
62 fn clone(&self) -> Self {
63 *self
64 }
65 }
66 #[repr(C)]
67 pub struct SIP_ADD_NEWPROVIDER {
68 pub cbStruct: u32,
69 pub pgSubject: *mut ::windows_sys::core::GUID,
70 pub pwszDLLFileName: ::windows_sys::core::PWSTR,
71 pub pwszMagicNumber: ::windows_sys::core::PWSTR,
72 pub pwszIsFunctionName: ::windows_sys::core::PWSTR,
73 pub pwszGetFuncName: ::windows_sys::core::PWSTR,
74 pub pwszPutFuncName: ::windows_sys::core::PWSTR,
75 pub pwszCreateFuncName: ::windows_sys::core::PWSTR,
76 pub pwszVerifyFuncName: ::windows_sys::core::PWSTR,
77 pub pwszRemoveFuncName: ::windows_sys::core::PWSTR,
78 pub pwszIsFunctionNameFmt2: ::windows_sys::core::PWSTR,
79 pub pwszGetCapFuncName: ::windows_sys::core::PWSTR,
80 }
81 impl ::core::marker::Copy for SIP_ADD_NEWPROVIDER {}
82 impl ::core::clone::Clone for SIP_ADD_NEWPROVIDER {
83 fn clone(&self) -> Self {
84 *self
85 }
86 }
87 #[repr(C)]
88 #[doc = "Required features: `\"Win32_Foundation\"`"]
89 #[cfg(feature = "Win32_Foundation")]
90 pub struct SIP_CAP_SET_V2 {
91 pub cbSize: u32,
92 pub dwVersion: u32,
93 pub isMultiSign: super::super::super::Foundation::BOOL,
94 pub dwReserved: u32,
95 }
96 #[cfg(feature = "Win32_Foundation")]
97 impl ::core::marker::Copy for SIP_CAP_SET_V2 {}
98 #[cfg(feature = "Win32_Foundation")]
99 impl ::core::clone::Clone for SIP_CAP_SET_V2 {
100 fn clone(&self) -> Self {
101 *self
102 }
103 }
104 #[repr(C)]
105 #[doc = "Required features: `\"Win32_Foundation\"`"]
106 #[cfg(feature = "Win32_Foundation")]
107 pub struct SIP_CAP_SET_V3 {
108 pub cbSize: u32,
109 pub dwVersion: u32,
110 pub isMultiSign: super::super::super::Foundation::BOOL,
111 pub Anonymous: SIP_CAP_SET_V3_0,
112 }
113 #[cfg(feature = "Win32_Foundation")]
114 impl ::core::marker::Copy for SIP_CAP_SET_V3 {}
115 #[cfg(feature = "Win32_Foundation")]
116 impl ::core::clone::Clone for SIP_CAP_SET_V3 {
117 fn clone(&self) -> Self {
118 *self
119 }
120 }
121 #[repr(C)]
122 #[doc = "Required features: `\"Win32_Foundation\"`"]
123 #[cfg(feature = "Win32_Foundation")]
124 pub union SIP_CAP_SET_V3_0 {
125 pub dwFlags: u32,
126 pub dwReserved: u32,
127 }
128 #[cfg(feature = "Win32_Foundation")]
129 impl ::core::marker::Copy for SIP_CAP_SET_V3_0 {}
130 #[cfg(feature = "Win32_Foundation")]
131 impl ::core::clone::Clone for SIP_CAP_SET_V3_0 {
132 fn clone(&self) -> Self {
133 *self
134 }
135 }
136 #[repr(C)]
137 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
138 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
139 pub struct SIP_DISPATCH_INFO {
140 pub cbSize: u32,
141 pub hSIP: super::super::super::Foundation::HANDLE,
142 pub pfGet: pCryptSIPGetSignedDataMsg,
143 pub pfPut: pCryptSIPPutSignedDataMsg,
144 pub pfCreate: pCryptSIPCreateIndirectData,
145 pub pfVerify: pCryptSIPVerifyIndirectData,
146 pub pfRemove: pCryptSIPRemoveSignedDataMsg,
147 }
148 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
149 impl ::core::marker::Copy for SIP_DISPATCH_INFO {}
150 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
151 impl ::core::clone::Clone for SIP_DISPATCH_INFO {
152 fn clone(&self) -> Self {
153 *self
154 }
155 }
156 #[repr(C)]
157 pub struct SIP_INDIRECT_DATA {
158 pub Data: super::CRYPT_ATTRIBUTE_TYPE_VALUE,
159 pub DigestAlgorithm: super::CRYPT_ALGORITHM_IDENTIFIER,
160 pub Digest: super::CRYPT_INTEGER_BLOB,
161 }
162 impl ::core::marker::Copy for SIP_INDIRECT_DATA {}
163 impl ::core::clone::Clone for SIP_INDIRECT_DATA {
164 fn clone(&self) -> Self {
165 *self
166 }
167 }
168 #[repr(C)]
169 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
170 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
171 pub struct SIP_SUBJECTINFO {
172 pub cbSize: u32,
173 pub pgSubjectType: *mut ::windows_sys::core::GUID,
174 pub hFile: super::super::super::Foundation::HANDLE,
175 pub pwsFileName: ::windows_sys::core::PCWSTR,
176 pub pwsDisplayName: ::windows_sys::core::PCWSTR,
177 pub dwReserved1: u32,
178 pub dwIntVersion: u32,
179 pub hProv: usize,
180 pub DigestAlgorithm: super::CRYPT_ALGORITHM_IDENTIFIER,
181 pub dwFlags: u32,
182 pub dwEncodingType: u32,
183 pub dwReserved2: u32,
184 pub fdwCAPISettings: u32,
185 pub fdwSecuritySettings: u32,
186 pub dwIndex: u32,
187 pub dwUnionChoice: u32,
188 pub Anonymous: SIP_SUBJECTINFO_0,
189 pub pClientData: *mut ::core::ffi::c_void,
190 }
191 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
192 impl ::core::marker::Copy for SIP_SUBJECTINFO {}
193 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
194 impl ::core::clone::Clone for SIP_SUBJECTINFO {
195 fn clone(&self) -> Self {
196 *self
197 }
198 }
199 #[repr(C)]
200 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
201 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
202 pub union SIP_SUBJECTINFO_0 {
203 pub psFlat: *mut MS_ADDINFO_FLAT,
204 pub psCatMember: *mut super::Catalog::MS_ADDINFO_CATALOGMEMBER,
205 pub psBlob: *mut MS_ADDINFO_BLOB,
206 }
207 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
208 impl ::core::marker::Copy for SIP_SUBJECTINFO_0 {}
209 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
210 impl ::core::clone::Clone for SIP_SUBJECTINFO_0 {
211 fn clone(&self) -> Self {
212 *self
213 }
214 }
215 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
216 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
217 pub type pCryptSIPCreateIndirectData = ::core::option::Option<unsafe extern "system" fn(psubjectinfo: *mut SIP_SUBJECTINFO, pcbindirectdata: *mut u32, pindirectdata: *mut SIP_INDIRECT_DATA) -> super::super::super::Foundation::BOOL>;
218 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
219 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
220 pub type pCryptSIPGetCaps = ::core::option::Option<unsafe extern "system" fn(psubjinfo: *const SIP_SUBJECTINFO, pcaps: *mut SIP_CAP_SET_V3) -> super::super::super::Foundation::BOOL>;
221 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
222 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
223 pub type pCryptSIPGetSealedDigest = ::core::option::Option<unsafe extern "system" fn(psubjectinfo: *const SIP_SUBJECTINFO, psig: *const u8, dwsig: u32, pbdigest: *mut u8, pcbdigest: *mut u32) -> super::super::super::Foundation::BOOL>;
224 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
225 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
226 pub type pCryptSIPGetSignedDataMsg = ::core::option::Option<unsafe extern "system" fn(psubjectinfo: *mut SIP_SUBJECTINFO, pdwencodingtype: *mut u32, dwindex: u32, pcbsigneddatamsg: *mut u32, pbsigneddatamsg: *mut u8) -> super::super::super::Foundation::BOOL>;
227 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
228 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
229 pub type pCryptSIPPutSignedDataMsg = ::core::option::Option<unsafe extern "system" fn(psubjectinfo: *mut SIP_SUBJECTINFO, dwencodingtype: u32, pdwindex: *mut u32, cbsigneddatamsg: u32, pbsigneddatamsg: *mut u8) -> super::super::super::Foundation::BOOL>;
230 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
231 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
232 pub type pCryptSIPRemoveSignedDataMsg = ::core::option::Option<unsafe extern "system" fn(psubjectinfo: *mut SIP_SUBJECTINFO, dwindex: u32) -> super::super::super::Foundation::BOOL>;
233 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`"]
234 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog"))]
235 pub type pCryptSIPVerifyIndirectData = ::core::option::Option<unsafe extern "system" fn(psubjectinfo: *mut SIP_SUBJECTINFO, pindirectdata: *mut SIP_INDIRECT_DATA) -> super::super::super::Foundation::BOOL>;
236 #[doc = "Required features: `\"Win32_Foundation\"`"]
237 #[cfg(feature = "Win32_Foundation")]
238 pub type pfnIsFileSupported = ::core::option::Option<unsafe extern "system" fn(hfile: super::super::super::Foundation::HANDLE, pgsubject: *mut ::windows_sys::core::GUID) -> super::super::super::Foundation::BOOL>;
239 #[doc = "Required features: `\"Win32_Foundation\"`"]
240 #[cfg(feature = "Win32_Foundation")]
241 pub type pfnIsFileSupportedName = ::core::option::Option<unsafe extern "system" fn(pwszfilename: ::windows_sys::core::PCWSTR, pgsubject: *mut ::windows_sys::core::GUID) -> super::super::super::Foundation::BOOL>;