diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
commit | 16f504a9dca3fe3b70568f67b7d41241ae485288 (patch) | |
tree | c60f36ada0496ba928b7161059ba5ab1ab224f9d /src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h | |
parent | Initial commit. (diff) | |
download | virtualbox-upstream.tar.xz virtualbox-upstream.zip |
Adding upstream version 7.0.6-dfsg.upstream/7.0.6-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h')
-rw-r--r-- | src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h new file mode 100644 index 00000000..0621f2a9 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/mssip.h @@ -0,0 +1,189 @@ +/* + * Copyright (C) 2002 Patrik Stridvall + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef __WINE_MSSIP_H +#define __WINE_MSSIP_H + +#ifdef __cplusplus +extern "C" { +#endif /* defined(__cplusplus) */ + +/**********************************************************************/ + +typedef CRYPT_HASH_BLOB CRYPT_DIGEST_DATA; + +/**********************************************************************/ + +#define MSSIP_FLAGS_PROHIBIT_RESIZE_ON_CREATE 0x00010000 +#define MSSIP_FLAGS_USE_CATALOG 0x00020000 + +#define SPC_INC_PE_RESOURCES_FLAG 0x80 +#define SPC_INC_PE_DEBUG_INFO_FLAG 0x40 +#define SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG 0x20 + +#define MSSIP_ADDINFO_NONE 0 +#define MSSIP_ADDINFO_FLAT 1 +#define MSSIP_ADDINFO_CATMEMBER 2 +#define MSSIP_ADDINFO_BLOB 3 +#define MSSIP_ADDINFO_NONMSSIP 500 + +#define SIP_MAX_MAGIC_NUMBER 4 + +/**********************************************************************/ + +#include <pshpack8.h> +typedef struct SIP_SUBJECTINFO_ { + DWORD cbSize; + GUID *pgSubjectType; + HANDLE hFile; + LPCWSTR pwsFileName; + LPCWSTR pwsDisplayName; + + DWORD dwReserved1; + DWORD dwIntVersion; + + HCRYPTPROV hProv; + CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm; + DWORD dwFlags; + DWORD dwEncodingType; + DWORD dwReserved2; + DWORD fdwCAPISettings; + DWORD fdwSecuritySettings; + DWORD dwIndex; + + DWORD dwUnionChoice; + union { + struct MS_ADDINFO_FLAT_ *psFlat; + struct MS_ADDINFO_CATALOGMEMBER_ *psCatMember; + struct MS_ADDINFO_BLOB_ *psBlob; + } DUMMYUNIONNAME; + + LPVOID pClientData; +} SIP_SUBJECTINFO, *LPSIP_SUBJECTINFO; +#include <poppack.h> + +#include <pshpack8.h> +typedef struct MS_ADDINFO_FLAT_ { + DWORD cbStruct; + + struct SIP_INDIRECT_DATA_ *pIndirectData; +} MS_ADDINFO_FLAT, *PMS_ADDINFO_FLAT; +#include <poppack.h> + +#include <pshpack8.h> +typedef struct MS_ADDINFO_CATALOGMEMBER_ { + DWORD cbStruct; + + struct CRYPTCATSTORE_ *pStore; + struct CRYPTCATMEMBER_ *pMember; +} MS_ADDINFO_CATALOGMEMBER, *PMS_ADDINFO_CATALOGMEMBER; +#include <poppack.h> + +#include <pshpack8.h> +typedef struct MS_ADDINFO_BLOB_ { + DWORD cbStruct; + + DWORD cbMemObject; + BYTE *pbMemObject; + + DWORD cbMemSignedMsg; + BYTE *pbMemSignedMsg; +} MS_ADDINFO_BLOB, *PMS_ADDINFO_BLOB; +#include <poppack.h> + +#include <pshpack8.h> +typedef struct SIP_INDIRECT_DATA_ { + CRYPT_ATTRIBUTE_TYPE_VALUE Data; + CRYPT_ALGORITHM_IDENTIFIER DigestAlgorithm; + CRYPT_HASH_BLOB Digest; +} SIP_INDIRECT_DATA, *PSIP_INDIRECT_DATA; +#include <poppack.h> + +typedef BOOL (WINAPI * pCryptSIPGetSignedDataMsg)(SIP_SUBJECTINFO *,DWORD *,DWORD,DWORD *,BYTE *); +typedef BOOL (WINAPI * pCryptSIPPutSignedDataMsg)(SIP_SUBJECTINFO *,DWORD,DWORD *,DWORD,BYTE *); +typedef BOOL (WINAPI * pCryptSIPCreateIndirectData)(SIP_SUBJECTINFO *,DWORD *,SIP_INDIRECT_DATA *); +typedef BOOL (WINAPI * pCryptSIPVerifyIndirectData)(SIP_SUBJECTINFO *,SIP_INDIRECT_DATA *); +typedef BOOL (WINAPI * pCryptSIPRemoveSignedDataMsg)(SIP_SUBJECTINFO *,DWORD); + +#include <pshpack8.h> +typedef struct SIP_DISPATCH_INFO_ { + DWORD cbSize; + + HANDLE hSIP; + + pCryptSIPGetSignedDataMsg pfGet; + pCryptSIPPutSignedDataMsg pfPut; + pCryptSIPCreateIndirectData pfCreate; + pCryptSIPVerifyIndirectData pfVerify; + pCryptSIPRemoveSignedDataMsg pfRemove; +} SIP_DISPATCH_INFO, *LPSIP_DISPATCH_INFO; +#include <poppack.h> + +typedef BOOL (WINAPI *pfnIsFileSupported)(HANDLE,GUID *); +typedef BOOL (WINAPI *pfnIsFileSupportedName)(WCHAR *,GUID *); + +#include <pshpack8.h> +typedef struct SIP_ADD_NEWPROVIDER_ +{ + DWORD cbStruct; + + GUID *pgSubject; + + WCHAR *pwszDLLFileName; + WCHAR *pwszMagicNumber; + + WCHAR *pwszIsFunctionName; + + WCHAR *pwszGetFuncName; + WCHAR *pwszPutFuncName; + WCHAR *pwszCreateFuncName; + WCHAR *pwszVerifyFuncName; + WCHAR *pwszRemoveFuncName; + + WCHAR *pwszIsFunctionNameFmt2; +} SIP_ADD_NEWPROVIDER, *PSIP_ADD_NEWPROVIDER; +#include <poppack.h> + +/**********************************************************************/ + +BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO *,DWORD *,DWORD,DWORD *,BYTE *); +BOOL WINAPI CryptSIPPutSignedDataMsg(SIP_SUBJECTINFO *,DWORD,DWORD *,DWORD,BYTE *); +BOOL WINAPI CryptSIPCreateIndirectData(SIP_SUBJECTINFO *,DWORD *,SIP_INDIRECT_DATA *); +BOOL WINAPI CryptSIPVerifyIndirectData(SIP_SUBJECTINFO *,SIP_INDIRECT_DATA *); +BOOL WINAPI CryptSIPRemoveSignedDataMsg(SIP_SUBJECTINFO *,DWORD); + +BOOL WINAPI CryptSIPLoad(const GUID *,DWORD,SIP_DISPATCH_INFO *); +BOOL WINAPI CryptSIPRetrieveSubjectGuid(LPCWSTR,HANDLE,GUID *); +BOOL WINAPI CryptSIPRetrieveSubjectGuidForCatalogFile(LPCWSTR,HANDLE,GUID *); +BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *); +BOOL WINAPI CryptSIPRemoveProvider(GUID *); + +#ifdef __cplusplus +} /* extern "C" */ +#endif /* defined(__cplusplus) */ + +#endif /* __WINE_MSSIP_H */ |