@@ -23,24 +23,6 @@ public static extern bool CryptQueryObject
23
23
[ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr ppvContext
24
24
) ;
25
25
26
- [ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptQueryObject" , SetLastError = true ) ]
27
- [ return : MarshalAs ( UnmanagedType . Bool ) ]
28
- public static extern bool CryptQueryObject
29
- (
30
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptQueryObjectType dwObjectType ,
31
- [ param: In , Out , MarshalAs ( UnmanagedType . Struct ) ] ref CRYPTOAPI_BLOB pvObject ,
32
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptQueryContentFlagType dwExpectedContentTypeFlags ,
33
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptQueryFormatFlagType dwExpectedFormatTypeFlags ,
34
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptQueryObjectFlags dwFlags ,
35
- [ param: Out , MarshalAs ( UnmanagedType . U4 ) ] out EncodingType pdwMsgAndCertEncodingType ,
36
- [ param: Out , MarshalAs ( UnmanagedType . U4 ) ] out CryptQueryContentType pdwContentType ,
37
- [ param: Out , MarshalAs ( UnmanagedType . U4 ) ] out CryptQueryFormatType pdwFormatType ,
38
- [ param: Out ] out CertStoreSafeHandle phCertStore ,
39
- [ param: Out ] out CryptMsgSafeHandle phMsg ,
40
- [ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr ppvContext
41
- ) ;
42
-
43
-
44
26
[ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptQueryObject" , SetLastError = true ) ]
45
27
[ return : MarshalAs ( UnmanagedType . Bool ) ]
46
28
public static extern bool CryptQueryObject
@@ -86,27 +68,6 @@ public static extern unsafe bool CryptDecodeObjectEx
86
68
[ param: In , Out , MarshalAs ( UnmanagedType . U4 ) ] ref uint pcbStructInfo
87
69
) ;
88
70
89
- [ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptMsgOpenToDecode" , SetLastError = true ) ]
90
- public static extern unsafe CryptMsgSafeHandle CryptMsgOpenToDecode
91
- (
92
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] EncodingType dwCertEncodingType ,
93
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptMsgOpenFlags dwFlags ,
94
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptMsgType dwMsgType ,
95
- [ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr hCryptProv ,
96
- [ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr pRecipientInfo ,
97
- [ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr pStreamInfo
98
- ) ;
99
-
100
- [ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptMsgUpdate" , SetLastError = true ) ]
101
- [ return : MarshalAs ( UnmanagedType . Bool ) ]
102
- public static extern unsafe bool CryptMsgUpdate
103
- (
104
- [ param: In ] CryptMsgSafeHandle hCryptMsg ,
105
- [ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr pbData ,
106
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] uint cbData ,
107
- [ param: In , MarshalAs ( UnmanagedType . Bool ) ] bool fFinal
108
- ) ;
109
-
110
71
[ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptMsgClose" , SetLastError = true ) ]
111
72
[ return : MarshalAs ( UnmanagedType . Bool ) ]
112
73
public static extern bool CryptMsgClose ( [ param: In , MarshalAs ( UnmanagedType . SysInt ) ] IntPtr hCryptMsg ) ;
@@ -130,17 +91,6 @@ public static unsafe extern bool CryptMsgGetParam
130
91
[ param: In , Out , MarshalAs ( UnmanagedType . U4 ) ] ref uint pcbData
131
92
) ;
132
93
133
- [ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptMsgGetParam" , SetLastError = true ) ]
134
- [ return : MarshalAs ( UnmanagedType . Bool ) ]
135
- public static unsafe extern bool CryptMsgGetParam
136
- (
137
- [ param: In ] CryptMsgSafeHandle hCryptMsg ,
138
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] CryptMsgParamType dwParamType ,
139
- [ param: In , MarshalAs ( UnmanagedType . U4 ) ] uint dwIndex ,
140
- [ param: In ] void * pvData ,
141
- [ param: In , Out , MarshalAs ( UnmanagedType . U4 ) ] ref uint pcbData
142
- ) ;
143
-
144
94
[ method: DllImport ( "crypt32.dll" , CallingConvention = CallingConvention . Winapi , EntryPoint = "CryptBinaryToString" , SetLastError = true ) ]
145
95
[ return : MarshalAs ( UnmanagedType . Bool ) ]
146
96
public static unsafe extern bool CryptBinaryToString
@@ -338,27 +288,6 @@ internal enum CryptDecodeFlags : uint
338
288
CRYPT_DECODE_ALLOC_FLAG = 0x8000
339
289
}
340
290
341
- [ type: Flags ]
342
- internal enum CryptMsgOpenFlags : uint
343
- {
344
- CMSG_BARE_CONTENT_FLAG = 0x00000001 ,
345
- CMSG_LENGTH_ONLY_FLAG = 0x00000002 ,
346
- CMSG_DETACHED_FLAG = 0x00000004 ,
347
- CMSG_AUTHENTICATED_ATTRIBUTES_FLAG = 0x00000008 ,
348
- CMSG_CONTENTS_OCTETS_FLAG = 0x00000010 ,
349
- CMSG_MAX_LENGTH_FLAG = 0x00000020 ,
350
- }
351
-
352
- internal enum CryptMsgType : uint
353
- {
354
- CMSG_DATA = 1 ,
355
- CMSG_SIGNED = 2 ,
356
- CMSG_ENVELOPED = 3 ,
357
- CMSG_SIGNED_AND_ENVELOPED = 4 ,
358
- CMSG_HASHED = 5 ,
359
- CMSG_ENCRYPTED = 6 ,
360
- }
361
-
362
291
[ type: StructLayout ( LayoutKind . Sequential ) ]
363
292
internal struct CRYPTOAPI_BLOB
364
293
{
@@ -437,16 +366,6 @@ internal enum SpcLinkChoice : uint
437
366
SPC_FILE_LINK_CHOICE = 3
438
367
}
439
368
440
- [ type: StructLayout ( LayoutKind . Sequential ) ]
441
- internal struct CERT_CONTEXT
442
- {
443
- public EncodingType dwCertEncodingType ;
444
- public IntPtr pbCertEncoded ;
445
- public uint cbCertEncoded ;
446
- public IntPtr pCertInfo ;
447
- public IntPtr hCertStore ;
448
- }
449
-
450
369
[ type: StructLayout ( LayoutKind . Sequential , CharSet = CharSet . Ansi ) ]
451
370
internal struct CRYPT_ATTRIBUTE
452
371
{
0 commit comments