Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
2faaf226
Commit
2faaf226
authored
21 years ago
by
Juan Lang
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make rsabase.dll self-register.
parent
1795994d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/rsabase/Makefile.in
+1
-1
1 addition, 1 deletion
dlls/rsabase/Makefile.in
dlls/rsabase/main.c
+32
-2
32 additions, 2 deletions
dlls/rsabase/main.c
tools/wine.inf
+1
-5
1 addition, 5 deletions
tools/wine.inf
with
34 additions
and
8 deletions
dlls/rsabase/Makefile.in
+
1
−
1
View file @
2faaf226
...
...
@@ -4,7 +4,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
rsabase.dll
IMPORTS
=
kernel32
IMPORTS
=
advapi32
kernel32
C_SRCS
=
\
main.c
...
...
This diff is collapsed.
Click to expand it.
dlls/rsabase/main.c
+
32
−
2
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
;
}
This diff is collapsed.
Click to expand it.
tools/wine.inf
+
1
−
5
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment