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
88702ebb
Commit
88702ebb
authored
9 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
oauth2: Re-factored OAuth 2.0 state variable
parent
d6d58dd5
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/curl_sasl.c
+3
-3
3 additions, 3 deletions
lib/curl_sasl.c
lib/curl_sasl.h
+1
-1
1 addition, 1 deletion
lib/curl_sasl.h
with
4 additions
and
4 deletions
lib/curl_sasl.c
+
3
−
3
View file @
88702ebb
...
...
@@ -1344,7 +1344,7 @@ static void state(struct SASL *sasl, struct connectdata *conn,
"GSSAPI"
,
"GSSAPI_TOKEN"
,
"GSSAPI_NO_DATA"
,
"
X
OAUTH2"
,
"OAUTH2"
,
"CANCEL"
,
"FINAL"
,
/* LAST */
...
...
@@ -1458,7 +1458,7 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
if
((
enabledmechs
&
SASL_MECH_XOAUTH2
)
&&
((
conn
->
oauth_bearer
)
||
(
!
conn
->
passwd
)))
{
mech
=
SASL_MECH_STRING_XOAUTH2
;
state1
=
SASL_
X
OAUTH2
;
state1
=
SASL_OAUTH2
;
sasl
->
authused
=
SASL_MECH_XOAUTH2
;
if
(
force_ir
||
data
->
set
.
sasl_ir
)
...
...
@@ -1640,7 +1640,7 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn,
break
;
#endif
case
SASL_
X
OAUTH2
:
case
SASL_OAUTH2
:
/* Create the authorisation message */
result
=
sasl_create_oauth_bearer_message
(
data
,
conn
->
user
,
NULL
,
0
,
...
...
This diff is collapsed.
Click to expand it.
lib/curl_sasl.h
+
1
−
1
View file @
88702ebb
...
...
@@ -90,7 +90,7 @@ typedef enum {
SASL_GSSAPI
,
SASL_GSSAPI_TOKEN
,
SASL_GSSAPI_NO_DATA
,
SASL_
X
OAUTH2
,
SASL_OAUTH2
,
SASL_CANCEL
,
SASL_FINAL
}
saslstate
;
...
...
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