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
d42a601b
Commit
d42a601b
authored
Jul 02, 2008
by
Zhangrong Huang
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Allow loading external schannel.dll.
parent
746cdb4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
schannel.c
dlls/secur32/schannel.c
+2
-1
secur32.c
dlls/secur32/secur32.c
+19
-6
secur32_priv.h
dlls/secur32/secur32_priv.h
+2
-1
No files found.
dlls/secur32/schannel.c
View file @
d42a601b
...
...
@@ -358,11 +358,12 @@ static const SecurityFunctionTableW schanTableW = {
static
const
WCHAR
schannelComment
[]
=
{
'S'
,
'c'
,
'h'
,
'a'
,
'n'
,
'n'
,
'e'
,
'l'
,
' '
,
'S'
,
'e'
,
'c'
,
'u'
,
'r'
,
'i'
,
't'
,
'y'
,
' '
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
0
};
static
const
WCHAR
schannelDllName
[]
=
{
's'
,
'c'
,
'h'
,
'a'
,
'n'
,
'n'
,
'e'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
void
SECUR32_initSchannelSP
(
void
)
{
SecureProvider
*
provider
=
SECUR32_addProvider
(
&
schanTableA
,
&
schanTableW
,
NULL
);
schannelDllName
);
if
(
provider
)
{
...
...
dlls/secur32/secur32.c
View file @
d42a601b
...
...
@@ -419,10 +419,10 @@ SecureProvider *SECUR32_addProvider(const SecurityFunctionTableA *fnTableA,
if
(
fnTableA
||
fnTableW
)
{
ret
->
moduleName
=
NULL
;
ret
->
moduleName
=
moduleName
?
SECUR32_strdupW
(
moduleName
)
:
NULL
;
_makeFnTableA
(
&
ret
->
fnTableA
,
fnTableA
,
fnTableW
);
_makeFnTableW
(
&
ret
->
fnTableW
,
fnTableA
,
fnTableW
);
ret
->
loaded
=
TRUE
;
ret
->
loaded
=
moduleName
?
FALSE
:
TRUE
;
}
else
{
...
...
@@ -505,9 +505,19 @@ static void _tryLoadProvider(PWSTR moduleName)
if
(
pInitSecurityInterfaceW
)
fnTableW
=
pInitSecurityInterfaceW
();
if
(
fnTableW
&&
fnTableW
->
EnumerateSecurityPackagesW
)
ret
=
fnTableW
->
EnumerateSecurityPackagesW
(
&
toAdd
,
&
infoW
);
{
if
(
fnTableW
!=
&
securityFunctionTableW
)
ret
=
fnTableW
->
EnumerateSecurityPackagesW
(
&
toAdd
,
&
infoW
);
else
TRACE
(
"%s has built-in providers, skip adding
\n
"
,
debugstr_w
(
moduleName
));
}
else
if
(
fnTableA
&&
fnTableA
->
EnumerateSecurityPackagesA
)
ret
=
fnTableA
->
EnumerateSecurityPackagesA
(
&
toAdd
,
&
infoA
);
{
if
(
fnTableA
!=
&
securityFunctionTableA
)
ret
=
fnTableA
->
EnumerateSecurityPackagesA
(
&
toAdd
,
&
infoA
);
else
TRACE
(
"%s has built-in providers, skip adding
\n
"
,
debugstr_w
(
moduleName
));
}
if
(
ret
==
SEC_E_OK
&&
toAdd
>
0
&&
(
infoW
||
infoA
))
{
SecureProvider
*
provider
=
SECUR32_addProvider
(
NULL
,
NULL
,
...
...
@@ -624,8 +634,11 @@ SecurePackage *SECUR32_findPackageW(PCWSTR packageName)
fnTableA
=
pInitSecurityInterfaceA
();
if
(
pInitSecurityInterfaceW
)
fnTableW
=
pInitSecurityInterfaceW
();
_makeFnTableA
(
&
ret
->
provider
->
fnTableA
,
fnTableA
,
fnTableW
);
_makeFnTableW
(
&
ret
->
provider
->
fnTableW
,
fnTableA
,
fnTableW
);
/* dont't update built-in SecurityFunctionTable */
if
(
fnTableA
!=
&
securityFunctionTableA
)
_makeFnTableA
(
&
ret
->
provider
->
fnTableA
,
fnTableA
,
fnTableW
);
if
(
fnTableW
!=
&
securityFunctionTableW
)
_makeFnTableW
(
&
ret
->
provider
->
fnTableW
,
fnTableA
,
fnTableW
);
ret
->
provider
->
loaded
=
TRUE
;
}
else
...
...
dlls/secur32/secur32_priv.h
View file @
d42a601b
...
...
@@ -89,7 +89,8 @@ typedef enum _sign_direction {
}
SignDirection
;
/* Allocates space for and initializes a new provider. If fnTableA or fnTableW
* is non-NULL, assumes the provider is built-in (and is thus already loaded.)
* is non-NULL, assumes the provider is built-in, and if moduleName is non-NULL,
* means must load the LSA/user mode functions tables from external SSP/AP module.
* Otherwise moduleName must not be NULL.
* Returns a pointer to the stored provider entry, for use adding packages.
*/
...
...
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