Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
5e75c310
Commit
5e75c310
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
'authdone' was added to the sessionhandle and thus was removed from the
argument to the NTLM function(s)
parent
20cab07c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/http_ntlm.c
+6
-5
6 additions, 5 deletions
lib/http_ntlm.c
lib/http_ntlm.h
+1
-1
1 addition, 1 deletion
lib/http_ntlm.h
with
7 additions
and
6 deletions
lib/http_ntlm.c
+
6
−
5
View file @
5e75c310
...
...
@@ -277,8 +277,7 @@ static void mkhash(char *password,
/* this is for creating ntlm header output */
CURLcode
Curl_output_ntlm
(
struct
connectdata
*
conn
,
bool
proxy
,
bool
*
ready
)
bool
proxy
)
{
const
char
*
domain
=
""
;
/* empty */
const
char
*
host
=
""
;
/* empty */
...
...
@@ -300,7 +299,9 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
/* point to the correct struct with this */
struct
ntlmdata
*
ntlm
;
*
ready
=
FALSE
;
curlassert
(
conn
);
curlassert
(
conn
->
data
);
conn
->
data
->
state
.
authdone
=
FALSE
;
if
(
proxy
)
{
allocuserpwd
=
&
conn
->
allocptr
.
proxyuserpwd
;
...
...
@@ -562,7 +563,7 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
return
CURLE_OUT_OF_MEMORY
;
/* FIX TODO */
ntlm
->
state
=
NTLMSTATE_TYPE3
;
/* we sent a type-3 */
*
ready
=
TRUE
;
conn
->
data
->
state
.
authdone
=
TRUE
;
/* Switch to web authentication after proxy authentication is done */
if
(
proxy
)
...
...
@@ -577,7 +578,7 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
free
(
*
allocuserpwd
);
*
allocuserpwd
=
NULL
;
}
*
ready
=
TRUE
;
conn
->
data
->
state
.
authdone
=
TRUE
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/http_ntlm.h
+
1
−
1
View file @
5e75c310
...
...
@@ -36,7 +36,7 @@ typedef enum {
CURLntlm
Curl_input_ntlm
(
struct
connectdata
*
conn
,
bool
proxy
,
char
*
header
);
/* this is for creating ntlm header output */
CURLcode
Curl_output_ntlm
(
struct
connectdata
*
conn
,
bool
proxy
,
bool
*
ready
);
CURLcode
Curl_output_ntlm
(
struct
connectdata
*
conn
,
bool
proxy
);
void
Curl_ntlm_cleanup
(
struct
SessionHandle
*
data
);
...
...
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