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
0aca97a2
Commit
0aca97a2
authored
Nov 14, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Nov 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptdlg: Register/unregister the OID functions exported by cryptdlg.
parent
89cf2276
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
main.c
dlls/cryptdlg/main.c
+28
-0
No files found.
dlls/cryptdlg/main.c
View file @
0aca97a2
...
@@ -465,6 +465,8 @@ BOOL WINAPI CertViewPropertiesW(CERT_VIEWPROPERTIES_STRUCT_W *info)
...
@@ -465,6 +465,8 @@ BOOL WINAPI CertViewPropertiesW(CERT_VIEWPROPERTIES_STRUCT_W *info)
return
ret
;
return
ret
;
}
}
#define szOID_MICROSOFT_Encryption_Key_Preference "1.3.6.1.4.1.311.16.4"
/***********************************************************************
/***********************************************************************
* DllRegisterServer (CRYPTDLG.@)
* DllRegisterServer (CRYPTDLG.@)
*/
*/
...
@@ -484,6 +486,8 @@ HRESULT WINAPI DllRegisterServer(void)
...
@@ -484,6 +486,8 @@ HRESULT WINAPI DllRegisterServer(void)
'F'
,
'i'
,
'n'
,
'a'
,
'l'
,
'P'
,
'o'
,
'l'
,
'i'
,
'c'
,
'y'
,
0
};
'F'
,
'i'
,
'n'
,
'a'
,
'l'
,
'P'
,
'o'
,
'l'
,
'i'
,
'c'
,
'y'
,
0
};
static
WCHAR
certTrustCleanup
[]
=
{
'C'
,
'e'
,
'r'
,
't'
,
'T'
,
'r'
,
'u'
,
's'
,
't'
,
static
WCHAR
certTrustCleanup
[]
=
{
'C'
,
'e'
,
'r'
,
't'
,
'T'
,
'r'
,
'u'
,
's'
,
't'
,
'C'
,
'l'
,
'e'
,
'a'
,
'n'
,
'u'
,
'p'
,
0
};
'C'
,
'l'
,
'e'
,
'a'
,
'n'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
cryptDlg
[]
=
{
'c'
,
'r'
,
'y'
,
'p'
,
't'
,
'd'
,
'l'
,
'g'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
CRYPT_REGISTER_ACTIONID
reg
;
CRYPT_REGISTER_ACTIONID
reg
;
GUID
guid
=
CERT_CERTIFICATE_ACTION_VERIFY
;
GUID
guid
=
CERT_CERTIFICATE_ACTION_VERIFY
;
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
...
@@ -507,6 +511,18 @@ HRESULT WINAPI DllRegisterServer(void)
...
@@ -507,6 +511,18 @@ HRESULT WINAPI DllRegisterServer(void)
reg
.
sCleanupProvider
.
pwszFunctionName
=
certTrustCleanup
;
reg
.
sCleanupProvider
.
pwszFunctionName
=
certTrustCleanup
;
if
(
!
WintrustAddActionID
(
&
guid
,
WT_ADD_ACTION_ID_RET_RESULT_FLAG
,
&
reg
))
if
(
!
WintrustAddActionID
(
&
guid
,
WT_ADD_ACTION_ID_RET_RESULT_FLAG
,
&
reg
))
hr
=
GetLastError
();
hr
=
GetLastError
();
CryptRegisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_ENCODE_OBJECT_FUNC
,
"1.3.6.1.4.1.311.16.1.1"
,
cryptDlg
,
"EncodeAttrSequence"
);
CryptRegisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_ENCODE_OBJECT_FUNC
,
szOID_MICROSOFT_Encryption_Key_Preference
,
cryptDlg
,
"EncodeRecipientID"
);
CryptRegisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_DECODE_OBJECT_FUNC
,
"1.3.6.1.4.1.311.16.1.1"
,
cryptDlg
,
"DecodeAttrSequence"
);
CryptRegisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_DECODE_OBJECT_FUNC
,
szOID_MICROSOFT_Encryption_Key_Preference
,
cryptDlg
,
"DecodeRecipientID"
);
CryptRegisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_FORMAT_OBJECT_FUNC
,
szOID_PKIX_KP_EMAIL_PROTECTION
,
cryptDlg
,
"FormatPKIXEmailProtection"
);
CryptRegisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_FORMAT_OBJECT_FUNC
,
szOID_CERT_POLICIES
,
cryptDlg
,
"FormatVerisignExtension"
);
return
hr
;
return
hr
;
}
}
...
@@ -518,5 +534,17 @@ HRESULT WINAPI DllUnregisterServer(void)
...
@@ -518,5 +534,17 @@ HRESULT WINAPI DllUnregisterServer(void)
GUID
guid
=
CERT_CERTIFICATE_ACTION_VERIFY
;
GUID
guid
=
CERT_CERTIFICATE_ACTION_VERIFY
;
WintrustRemoveActionID
(
&
guid
);
WintrustRemoveActionID
(
&
guid
);
CryptUnregisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_ENCODE_OBJECT_FUNC
,
"1.3.6.1.4.1.311.16.1.1"
);
CryptUnregisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_ENCODE_OBJECT_FUNC
,
szOID_MICROSOFT_Encryption_Key_Preference
);
CryptUnregisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_DECODE_OBJECT_FUNC
,
"1.3.6.1.4.1.311.16.1.1"
);
CryptUnregisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_DECODE_OBJECT_FUNC
,
szOID_MICROSOFT_Encryption_Key_Preference
);
CryptUnregisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_FORMAT_OBJECT_FUNC
,
szOID_PKIX_KP_EMAIL_PROTECTION
);
CryptUnregisterOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_FORMAT_OBJECT_FUNC
,
szOID_CERT_POLICIES
);
return
S_OK
;
return
S_OK
;
}
}
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