[CRYPT32_WINETEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-17 12:33:39 +01:00
parent 0622ce1775
commit 5bd2230dc8
17 changed files with 31 additions and 131 deletions

View file

@ -17,9 +17,10 @@ list(APPEND SOURCE
sip.c
store.c
str.c
testlist.c)
precomp.h)
add_executable(crypt32_winetest ${SOURCE})
add_executable(crypt32_winetest ${SOURCE} testlist.c)
set_module_type(crypt32_winetest win32cui)
add_importlibs(crypt32_winetest crypt32 advapi32 user32 shlwapi shell32 msvcrt kernel32)
add_pch(crypt32_winetest precomp.h SOURCE)
add_rostests_file(TARGET crypt32_winetest)

View file

@ -18,14 +18,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
#define CERT_HEADER "-----BEGIN CERTIFICATE-----\r\n"
#define ALT_CERT_HEADER "-----BEGIN This is some arbitrary text that goes on and on-----\r\n"

View file

@ -18,16 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winreg.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static PCCERT_CONTEXT (WINAPI *pCertCreateSelfSignCertificate)(HCRYPTPROV_OR_NCRYPT_KEY_HANDLE,PCERT_NAME_BLOB,DWORD,PCRYPT_KEY_PROV_INFO,PCRYPT_ALGORITHM_IDENTIFIER,PSYSTEMTIME,PSYSTEMTIME,PCERT_EXTENSIONS);
static BOOL (WINAPI *pCertGetValidUsages)(DWORD,PCCERT_CONTEXT*,int*,LPSTR*,DWORD*);

View file

@ -18,17 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
//#include <stdarg.h>
#include "precomp.h"
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wininet.h>
#include <wine/test.h>
static const BYTE selfSignedCert[] = {
0x30, 0x82, 0x01, 0x1f, 0x30, 0x81, 0xce, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02,
0x10, 0xeb, 0x0d, 0x57, 0x2a, 0x9c, 0x09, 0xba, 0xa4, 0x4a, 0xb7, 0x25, 0x49,

View file

@ -18,17 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winreg.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static const BYTE bigCert[] = { 0x30, 0x7a, 0x02, 0x01, 0x01, 0x30, 0x02, 0x06,
0x00, 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13,

View file

@ -18,15 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static const BYTE emptyCTL[] = {
0x30,0x17,0x30,0x00,0x18,0x0f,0x31,0x36,0x30,0x31,0x30,0x31,0x30,0x31,0x30,

View file

@ -17,15 +17,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
//#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static BOOL (WINAPI *pCryptDecodeObjectEx)(DWORD,LPCSTR,const BYTE*,DWORD,DWORD,PCRYPT_DECODE_PARA,void*,DWORD*);
static BOOL (WINAPI *pCryptEncodeObjectEx)(DWORD,LPCSTR,const void*,DWORD,PCRYPT_ENCODE_PARA,void*,DWORD*);

View file

@ -18,15 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <winreg.h>
#include <wine/test.h>
#include "precomp.h"
static HMODULE hCrypt;

View file

@ -18,14 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static BOOL (WINAPI * pCryptAcquireContextA)
(HCRYPTPROV *, LPCSTR, LPCSTR, DWORD, DWORD);

View file

@ -18,16 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#define CMSG_SIGNER_ENCODE_INFO_HAS_CMS_FIELDS
#define CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static BOOL have_nt = TRUE;
static BOOL old_crypt32 = FALSE;

View file

@ -17,14 +17,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static BOOL (WINAPI * pCryptQueryObject)(DWORD, const void *, DWORD, DWORD,
DWORD, DWORD *, DWORD *, DWORD *, HCERTSTORE *, HCRYPTMSG *, const void **);

View file

@ -17,16 +17,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
//#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <winreg.h>
#include <wine/test.h>
#include "precomp.h"
static BOOL (WINAPI *pCryptEnumOIDInfo)(DWORD,DWORD,void*,PFN_CRYPT_ENUM_OID_INFO);

View file

@ -0,0 +1,11 @@
#ifndef _CRYPT32_WINETEST_PRECOMP_H_
#define _CRYPT32_WINETEST_PRECOMP_H_
#include <stdio.h>
#include <wine/test.h>
#include <winreg.h>
#define CMSG_SIGNER_ENCODE_INFO_HAS_CMS_FIELDS
#define CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS
#include <wincrypt.h>
#endif /* !_CRYPT32_WINETEST_PRECOMP_H_ */

View file

@ -18,14 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
static BOOL (WINAPI *pCryptProtectData)(DATA_BLOB*,LPCWSTR,DATA_BLOB*,PVOID,CRYPTPROTECT_PROMPTSTRUCT*,DWORD,DATA_BLOB*);
static BOOL (WINAPI *pCryptUnprotectData)(DATA_BLOB*,LPWSTR*,DATA_BLOB*,PVOID,CRYPTPROTECT_PROMPTSTRUCT*,DWORD,DATA_BLOB*);

View file

@ -19,16 +19,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
//#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <winnls.h>
#include <wincrypt.h>
#include <mssip.h>
#include "precomp.h"
#include <wine/test.h>
#include <winnls.h>
#include <mssip.h>
static BOOL (WINAPI * funcCryptSIPGetSignedDataMsg)(SIP_SUBJECTINFO *,DWORD *,DWORD,DWORD *,BYTE *);
static BOOL (WINAPI * funcCryptSIPPutSignedDataMsg)(SIP_SUBJECTINFO *,DWORD,DWORD *,DWORD,BYTE *);

View file

@ -18,18 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
//#include <stdarg.h>
#include "precomp.h"
#include <windef.h>
#include <winbase.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <winreg.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
/* The following aren't defined in wincrypt.h, as they're "reserved" */
#define CERT_CERT_PROP_ID 32

View file

@ -17,14 +17,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include <winerror.h>
#include <wincrypt.h>
#include <wine/test.h>
#include "precomp.h"
typedef struct _CertRDNAttrEncoding {
LPCSTR pszObjId;