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
7be48539
Commit
7be48539
authored
Nov 02, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Make the path to ntlm_auth easier to change by moving the executable…
secur32: Make the path to ntlm_auth easier to change by moving the executable name to the top of ntlm.c.
parent
01425f60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ntlm.c
dlls/secur32/ntlm.c
+10
-10
No files found.
dlls/secur32/ntlm.c
View file @
7be48539
...
...
@@ -35,6 +35,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(secur32);
#define NTLM_MAX_BUF 1904
static
CHAR
ntlm_auth
[]
=
"ntlm_auth"
;
/***********************************************************************
* QueryCredentialsAttributesA
*/
...
...
@@ -87,8 +89,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
{
SECURITY_STATUS
ret
;
PNegoHelper
helper
=
NULL
;
static
CHAR
ntlm_auth
[]
=
"ntlm_auth"
,
server_helper_protocol
[]
=
"--helper-protocol=squid-2.5-ntlmssp"
,
static
CHAR
server_helper_protocol
[]
=
"--helper-protocol=squid-2.5-ntlmssp"
,
credentials_argv
[]
=
"--use-cached-creds"
;
SEC_CHAR
*
client_user_arg
=
NULL
;
...
...
@@ -108,7 +109,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
switch
(
fCredentialUse
)
{
case
SECPKG_CRED_INBOUND
:
if
(
(
ret
=
fork_helper
(
&
helper
,
"ntlm_auth"
,
server_argv
))
!=
if
(
(
ret
=
fork_helper
(
&
helper
,
ntlm_auth
,
server_argv
))
!=
SEC_E_OK
)
{
phCredential
=
NULL
;
...
...
@@ -126,7 +127,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
{
static
const
char
username_arg
[]
=
"--username="
;
static
const
char
domain_arg
[]
=
"--domain="
;
static
char
ntlm_auth
[]
=
"ntlm_auth"
;
static
char
helper_protocol
[]
=
"--helper-protocol=ntlmssp-client-1"
;
int
unixcp_size
;
...
...
@@ -200,7 +200,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
client_argv
[
4
]
=
credentials_argv
;
client_argv
[
5
]
=
NULL
;
if
((
ret
=
fork_helper
(
&
helper
,
"ntlm_auth"
,
client_argv
))
!=
if
((
ret
=
fork_helper
(
&
helper
,
ntlm_auth
,
client_argv
))
!=
SEC_E_OK
)
{
phCredential
=
NULL
;
...
...
@@ -1609,15 +1609,14 @@ void SECUR32_initNTLMSP(void)
{
SECURITY_STATUS
ret
;
PNegoHelper
helper
;
static
CHAR
ntlm_auth
[]
=
"ntlm_auth"
,
version
[]
=
"--version"
;
static
CHAR
version
[]
=
"--version"
;
SEC_CHAR
*
args
[]
=
{
ntlm_auth
,
version
,
NULL
};
if
((
ret
=
fork_helper
(
&
helper
,
"ntlm_auth"
,
args
))
!=
SEC_E_OK
)
if
((
ret
=
fork_helper
(
&
helper
,
ntlm_auth
,
args
))
!=
SEC_E_OK
)
{
/* Cheat and allocate a helper anyway, so cleanup later will work. */
helper
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
PNegoHelper
));
...
...
@@ -1633,8 +1632,9 @@ void SECUR32_initNTLMSP(void)
}
else
{
ERR
(
"ntlm_auth was not found or is outdated. "
"Make sure that ntlm_auth >= 3.x is in your path.
\n
"
);
ERR
(
"%s was not found or is outdated. "
"Make sure that ntlm_auth >= 3.x is in your path.
\n
"
,
ntlm_auth
);
}
cleanup_helper
(
helper
);
}
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