Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ccb4ff76
Commit
ccb4ff76
authored
Sep 05, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Register WINTRUST_ACTION_GENERIC_CERT_VERIFY.
parent
32407f90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
register.c
dlls/wintrust/register.c
+34
-0
No files found.
dlls/wintrust/register.c
View file @
ccb4ff76
...
@@ -43,6 +43,8 @@ static CRYPT_TRUST_REG_ENTRY SoftpubCertCheck;
...
@@ -43,6 +43,8 @@ static CRYPT_TRUST_REG_ENTRY SoftpubCertCheck;
static
CRYPT_TRUST_REG_ENTRY
SoftpubFinalPolicy
;
static
CRYPT_TRUST_REG_ENTRY
SoftpubFinalPolicy
;
static
CRYPT_TRUST_REG_ENTRY
SoftpubCleanup
;
static
CRYPT_TRUST_REG_ENTRY
SoftpubCleanup
;
static
CRYPT_TRUST_REG_ENTRY
SoftpubDefCertInit
;
static
const
WCHAR
Trust
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
static
const
WCHAR
Trust
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'o'
,
'g'
,
'r'
,
'a'
,
'p'
,
'h'
,
'y'
,
'\\'
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'o'
,
'g'
,
'r'
,
'a'
,
'p'
,
'h'
,
'y'
,
'\\'
,
...
@@ -82,6 +84,7 @@ static void WINTRUST_InitRegStructs(void)
...
@@ -82,6 +84,7 @@ static void WINTRUST_InitRegStructs(void)
WINTRUST_INITREGENTRY
(
SoftpubCertCheck
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_CHKCERT_FUNCTION
)
WINTRUST_INITREGENTRY
(
SoftpubCertCheck
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_CHKCERT_FUNCTION
)
WINTRUST_INITREGENTRY
(
SoftpubFinalPolicy
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_FINALPOLICY_FUNCTION
)
WINTRUST_INITREGENTRY
(
SoftpubFinalPolicy
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_FINALPOLICY_FUNCTION
)
WINTRUST_INITREGENTRY
(
SoftpubCleanup
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_CLEANUPPOLICY_FUNCTION
)
WINTRUST_INITREGENTRY
(
SoftpubCleanup
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_CLEANUPPOLICY_FUNCTION
)
WINTRUST_INITREGENTRY
(
SoftpubDefCertInit
,
SP_POLICY_PROVIDER_DLL_NAME
,
SP_GENERIC_CERT_INIT_FUNCTION
)
#undef WINTRUST_INITREGENTRY
#undef WINTRUST_INITREGENTRY
}
}
...
@@ -105,6 +108,7 @@ static void WINTRUST_FreeRegStructs(void)
...
@@ -105,6 +108,7 @@ static void WINTRUST_FreeRegStructs(void)
WINTRUST_FREEREGENTRY
(
SoftpubCertCheck
);
WINTRUST_FREEREGENTRY
(
SoftpubCertCheck
);
WINTRUST_FREEREGENTRY
(
SoftpubFinalPolicy
);
WINTRUST_FREEREGENTRY
(
SoftpubFinalPolicy
);
WINTRUST_FREEREGENTRY
(
SoftpubCleanup
);
WINTRUST_FREEREGENTRY
(
SoftpubCleanup
);
WINTRUST_FREEREGENTRY
(
SoftpubDefCertInit
);
#undef WINTRUST_FREEREGENTRY
#undef WINTRUST_FREEREGENTRY
}
}
...
@@ -456,6 +460,35 @@ static void WINTRUST_RegisterPublishedSoftwareNoBadUi(void)
...
@@ -456,6 +460,35 @@ static void WINTRUST_RegisterPublishedSoftwareNoBadUi(void)
WINTRUST_WriteProviderToReg
(
GuidString
,
Cleanup
,
SoftpubCleanup
);
WINTRUST_WriteProviderToReg
(
GuidString
,
Cleanup
,
SoftpubCleanup
);
}
}
/***************************************************************************
* WINTRUST_RegisterGenCertVerify
*
* Register WINTRUST_ACTION_GENERIC_CERT_VERIFY actions and usages.
*
* NOTES
* WINTRUST_ACTION_GENERIC_CERT_VERIFY ({189A3842-3041-11D1-85E1-00C04FC295EE})
* is defined in softpub.h
* We don't care about failures (see comments in DllRegisterServer)
*/
static
void
WINTRUST_RegisterGenCertVerify
(
void
)
{
static
const
GUID
ProvGUID
=
WINTRUST_ACTION_GENERIC_CERT_VERIFY
;
WCHAR
GuidString
[
39
];
WINTRUST_Guid2Wstr
(
&
ProvGUID
,
GuidString
);
TRACE
(
"Going to register WINTRUST_ACTION_GENERIC_CERT_VERIFY : %s
\n
"
,
wine_dbgstr_w
(
GuidString
));
/* HKLM\Software\Microsoft\Cryptography\Trust\Provider\*\{189A3842-3041-11D1-85E1-00C04FC295EE} */
WINTRUST_WriteProviderToReg
(
GuidString
,
Initialization
,
SoftpubDefCertInit
);
WINTRUST_WriteProviderToReg
(
GuidString
,
Message
,
SoftpubMessage
);
WINTRUST_WriteProviderToReg
(
GuidString
,
Signature
,
SoftpubSignature
);
WINTRUST_WriteProviderToReg
(
GuidString
,
Certificate
,
SoftpubCertficate
);
WINTRUST_WriteProviderToReg
(
GuidString
,
CertCheck
,
SoftpubCertCheck
);
WINTRUST_WriteProviderToReg
(
GuidString
,
FinalPolicy
,
SoftpubFinalPolicy
);
WINTRUST_WriteProviderToReg
(
GuidString
,
Cleanup
,
SoftpubCleanup
);
}
/***********************************************************************
/***********************************************************************
* DllRegisterServer (WINTRUST.@)
* DllRegisterServer (WINTRUST.@)
*/
*/
...
@@ -496,6 +529,7 @@ HRESULT WINAPI DllRegisterServer(void)
...
@@ -496,6 +529,7 @@ HRESULT WINAPI DllRegisterServer(void)
WINTRUST_RegisterGenVerifyV2
();
WINTRUST_RegisterGenVerifyV2
();
WINTRUST_RegisterPublishedSoftware
();
WINTRUST_RegisterPublishedSoftware
();
WINTRUST_RegisterPublishedSoftwareNoBadUi
();
WINTRUST_RegisterPublishedSoftwareNoBadUi
();
WINTRUST_RegisterGenCertVerify
();
/* Free the registry structures */
/* Free the registry structures */
WINTRUST_FreeRegStructs
();
WINTRUST_FreeRegStructs
();
...
...
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