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
2faaf226
Commit
2faaf226
authored
Mar 01, 2004
by
Juan Lang
Committed by
Alexandre Julliard
Mar 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rsabase.dll self-register.
parent
1795994d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
8 deletions
+34
-8
Makefile.in
dlls/rsabase/Makefile.in
+1
-1
main.c
dlls/rsabase/main.c
+32
-2
wine.inf
tools/wine.inf
+1
-5
No files found.
dlls/rsabase/Makefile.in
View file @
2faaf226
...
...
@@ -4,7 +4,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
rsabase.dll
IMPORTS
=
kernel32
IMPORTS
=
advapi32
kernel32
C_SRCS
=
\
main.c
...
...
dlls/rsabase/main.c
View file @
2faaf226
...
...
@@ -32,6 +32,7 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "wincrypt.h"
#ifdef HAVE_OPENSSL_SSL_H
...
...
@@ -291,12 +292,41 @@ BOOL WINAPI RSA_CPVerifySignature(HCRYPTPROV hProv, HCRYPTHASH hHash, CONST BYTE
return
FALSE
;
}
static
const
WCHAR
szRSAKey
[]
=
{
'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'
,
'i'
,
'd'
,
'e'
,
'r'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
' '
,
'B'
,
'a'
,
's'
,
'e'
,
' '
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'o'
,
'g'
,
'r'
,
'a'
,
'p'
,
'h'
,
'i'
,
'c'
,
' '
,
'P'
,
'r'
,
'o'
,
'v'
,
'i'
,
'd'
,
'e'
,
'r'
,
' '
,
'v'
,
'1'
,
'.'
,
'0'
,
0
};
/***********************************************************************
* DllRegisterServer (RSABASE.@)
*/
HRESULT
WINAPI
RSABASE_DllRegisterServer
()
{
FIXME
(
"
\n
"
);
HKEY
key
;
DWORD
dp
;
long
apiRet
=
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szRSAKey
,
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
key
,
&
dp
);
if
(
apiRet
==
ERROR_SUCCESS
)
{
if
(
dp
==
REG_CREATED_NEW_KEY
)
{
static
const
WCHAR
szImagePath
[]
=
{
'I'
,
'm'
,
'a'
,
'g'
,
'e'
,
'P'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
szRSABase
[]
=
{
'r'
,
's'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
szType
[]
=
{
'T'
,
'y'
,
'p'
,
'e'
,
0
};
DWORD
type
=
1
;
RegSetValueExW
(
key
,
szImagePath
,
0
,
REG_SZ
,
(
LPBYTE
)
szRSABase
,
(
lstrlenW
(
szRSABase
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
key
,
szType
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
type
,
sizeof
(
type
));
}
RegCloseKey
(
key
);
}
return
S_OK
;
}
...
...
@@ -305,6 +335,6 @@ HRESULT WINAPI RSABASE_DllRegisterServer()
*/
HRESULT
WINAPI
RSABASE_DllUnregisterServer
()
{
FIXME
(
"
\n
"
);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szRSAKey
);
return
S_OK
;
}
tools/wine.inf
View file @
2faaf226
...
...
@@ -30,7 +30,6 @@ RegisterDlls=RegisterDllsSection
UpdateInis=SystemIni
AddReg=\
Classes,\
Crypto,\
CurrentVersion,\
Debugger,\
Desktop,\
...
...
@@ -76,10 +75,6 @@ HKCR,TypeLib\{00020430-0000-0000-C000-000000000046}\2.0,,,"OLE Automation"
HKCR,TypeLib\{00020430-0000-0000-C000-000000000046}\2.0\0\win32,,,"stdole2.tlb"
HKCR,TypeLib\{00020430-0000-0000-C000-000000000046}\2.0\FLAGS,,,"0"
[Crypto]
HKLM,Software\Microsoft\Cryptography\Defaults\Provider\Microsoft Base Cryptographic Provider v1.0,Image Path,,rsabase.dll
HKLM,Software\Microsoft\Cryptography\Defaults\Provider\Microsoft Base Cryptographic Provider v1.0,Type,0x10001,1
[CurrentVersion]
HKLM,%CurrentVersion%,"CommonFilesDir",,"c:\Program Files\Common Files"
HKLM,%CurrentVersion%,"FirstInstallDateTime",1,21,81,7c,23
...
...
@@ -1991,6 +1986,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
11,,ole32.dll,1
11,,oleaut32.dll,1
11,,quartz.dll,1
11,,rsabase.dll,1
11,,shdocvw.dll,1
11,,shell32.dll,1
11,,urlmon.dll,1
...
...
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