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
e666bb2a
Commit
e666bb2a
authored
Jun 03, 2008
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
Jun 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Fix AES provider keys for Windows XP.
parent
69414975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
rsaenh.c
dlls/rsaenh/rsaenh.c
+11
-3
No files found.
dlls/rsaenh/rsaenh.c
View file @
e666bb2a
...
...
@@ -3822,7 +3822,7 @@ cleanup:
return
res
;
}
static
const
WCHAR
szProviderKeys
[
5
][
104
]
=
{
static
const
WCHAR
szProviderKeys
[
6
][
116
]
=
{
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'o'
,
'g'
,
'r'
,
'a'
,
'p'
,
'h'
,
'y'
,
'\\'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
's'
,
'\\'
,
'P'
,
'r'
,
'o'
,
'v'
,
...
...
@@ -3851,7 +3851,13 @@ static const WCHAR szProviderKeys[5][104] = {
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'o'
,
'g'
,
'r'
,
'a'
,
'p'
,
'h'
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
,
'A'
,
'E'
,
'S'
,
' '
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'o'
,
'g'
,
'r'
,
'a'
,
'p'
,
'h'
,
'i'
,
'c'
,
' '
,
'P'
,
'r'
,
'o'
,
'v'
,
'i'
,
'd'
,
'e'
,
'r'
,
' '
,
'('
,
'P'
,
'r'
,
'o'
,
't'
,
'o'
,
't'
,
'y'
,
'p'
,
'e'
,
')'
,
0
}
};
static
const
WCHAR
szDefaultKeys
[
3
][
65
]
=
{
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
...
...
@@ -3897,7 +3903,7 @@ HRESULT WINAPI DllRegisterServer(void)
long
apiRet
;
int
i
;
for
(
i
=
0
;
i
<
5
;
i
++
)
{
for
(
i
=
0
;
i
<
6
;
i
++
)
{
apiRet
=
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szProviderKeys
[
i
],
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
key
,
&
dp
);
...
...
@@ -3917,6 +3923,7 @@ HRESULT WINAPI DllRegisterServer(void)
type
=
PROV_RSA_SCHANNEL
;
break
;
case
4
:
case
5
:
type
=
PROV_RSA_AES
;
break
;
default:
...
...
@@ -3993,6 +4000,7 @@ HRESULT WINAPI DllUnregisterServer(void)
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szProviderKeys
[
2
]);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szProviderKeys
[
3
]);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szProviderKeys
[
4
]);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szProviderKeys
[
5
]);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szDefaultKeys
[
0
]);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szDefaultKeys
[
1
]);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szDefaultKeys
[
2
]);
...
...
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