Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1b32e5ec
Commit
1b32e5ec
authored
Sep 09, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Sep 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and use the header files mssip.h and sipbase.h.
parent
f4bf7185
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
217 additions
and
5 deletions
+217
-5
main.c
dlls/crypt32/main.c
+2
-5
Makefile.in
include/Makefile.in
+2
-0
mssip.h
include/mssip.h
+179
-0
sipbase.h
include/sipbase.h
+24
-0
wincrypt.h
include/wincrypt.h
+10
-0
No files found.
dlls/crypt32/main.c
View file @
1b32e5ec
...
...
@@ -19,14 +19,11 @@
#include "config.h"
#include "winbase.h"
#include "wincrypt.h"
/* #include "mssip.h" */
#include "mssip.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
crypt
);
typedef
struct
SIP_DISPATCH_INFO_
SIP_DISPATCH_INFO
,
*
LPSIP_DISPATCH_INFO
;
typedef
struct
SIP_ADD_NEWPROVIDER_
SIP_ADD_NEWPROVIDER
,
*
PSIP_ADD_NEWPROVIDER
;
/* this function is called by Internet Explorer when it is about to verify a downloaded component */
BOOL
WINAPI
I_CryptCreateLruCache
(
DWORD
x
,
DWORD
y
)
{
...
...
@@ -66,7 +63,7 @@ BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *psNewProv)
}
BOOL
WINAPI
CryptSIPRetrieveSubjectGuid
(
LPCWSTR
FileName
,
OPTIONAL
HANDLE
hFileIn
,
GUID
*
pgSubject
)
(
LPCWSTR
FileName
,
HANDLE
hFileIn
,
GUID
*
pgSubject
)
{
FIXME
(
"stub!
\n
"
);
return
FALSE
;
...
...
include/Makefile.in
View file @
1b32e5ec
...
...
@@ -52,6 +52,7 @@ INSTALLED_INCLUDES = \
mmsystem.h
\
msacm.h
\
msacmdlg.h
\
mssip.h
\
msvcrt/conio.h
\
msvcrt/crtdbg.h
\
msvcrt/ctype.h
\
...
...
@@ -118,6 +119,7 @@ INSTALLED_INCLUDES = \
shlguid.h
\
shlobj.h
\
shlwapi.h
\
sipbase.h
\
sql.h
\
sqlext.h
\
sqltypes.h
\
...
...
include/mssip.h
0 → 100644
View file @
1b32e5ec
/*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#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
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 */
include/sipbase.h
0 → 100644
View file @
1b32e5ec
/*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WINE_SIPBASE_H
#define __WINE_SIPBASE_H
#include "mssip.h"
#endif
/* __WINE_SIPBASE_H */
include/wincrypt.h
View file @
1b32e5ec
...
...
@@ -46,6 +46,16 @@ typedef struct _CRYPTOAPI_BLOB {
CRYPT_DER_BLOB
,
*
PCRYPT_DER_BLOB
,
CRYPT_ATTR_BLOB
,
*
PCRYPT_ATTR_BLOB
;
typedef
struct
_CRYPT_ALGORITHM_IDENTIFIER
{
LPSTR
pszObjId
;
CRYPT_OBJID_BLOB
Parameters
;
}
CRYPT_ALGORITHM_IDENTIFIER
,
*
PCRYPT_ALGORITHM_IDENTIFIER
;
typedef
struct
_CRYPT_ATTRIBUTE_TYPE_VALUE
{
LPSTR
pszObjId
;
CRYPT_OBJID_BLOB
Value
;
}
CRYPT_ATTRIBUTE_TYPE_VALUE
,
*
PCRYPT_ATTRIBUTE_TYPE_VALUE
;
typedef
struct
_PUBLICKEYSTRUC
{
BYTE
bType
;
BYTE
bVersion
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment