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
7023d8aa
Commit
7023d8aa
authored
9 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
oauth2: Don't use XAUTH2 in OAuth 2.0 function name
parent
eaa98cef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/curl_sasl.c
+10
-10
10 additions, 10 deletions
lib/curl_sasl.c
with
10 additions
and
10 deletions
lib/curl_sasl.c
+
10
−
10
View file @
7023d8aa
...
...
@@ -1154,7 +1154,7 @@ void Curl_sasl_ntlm_cleanup(struct ntlmdata *ntlm)
#endif
/* USE_NTLM && !USE_WINDOWS_SSPI*/
/*
* sasl_create_
x
oauth
2
_message()
* sasl_create_oauth
_bearer
_message()
*
* This is used to generate an already encoded OAuth 2.0 message ready for
* sending to the recipient.
...
...
@@ -1170,10 +1170,10 @@ void Curl_sasl_ntlm_cleanup(struct ntlmdata *ntlm)
*
* Returns CURLE_OK on success.
*/
static
CURLcode
sasl_create_
x
oauth
2
_message
(
struct
SessionHandle
*
data
,
const
char
*
user
,
const
char
*
bearer
,
char
**
outptr
,
size_t
*
outlen
)
static
CURLcode
sasl_create_oauth
_bearer
_message
(
struct
SessionHandle
*
data
,
const
char
*
user
,
const
char
*
bearer
,
char
**
outptr
,
size_t
*
outlen
)
{
CURLcode
result
=
CURLE_OK
;
char
*
xoauth
=
NULL
;
...
...
@@ -1450,9 +1450,9 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
sasl
->
authused
=
SASL_MECH_XOAUTH2
;
if
(
force_ir
||
data
->
set
.
sasl_ir
)
result
=
sasl_create_
x
oauth
2
_message
(
data
,
conn
->
user
,
conn
->
oauth_bearer
,
&
resp
,
&
len
);
result
=
sasl_create_oauth
_bearer
_message
(
data
,
conn
->
user
,
conn
->
oauth_bearer
,
&
resp
,
&
len
);
}
else
if
(
enabledmechs
&
SASL_MECH_LOGIN
)
{
mech
=
SASL_MECH_STRING_LOGIN
;
...
...
@@ -1629,8 +1629,8 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn,
case
SASL_XOAUTH2
:
/* Create the authorisation message */
result
=
sasl_create_
x
oauth
2
_message
(
data
,
conn
->
user
,
conn
->
oauth_bearer
,
&
resp
,
&
len
);
result
=
sasl_create_oauth
_bearer
_message
(
data
,
conn
->
user
,
conn
->
oauth_bearer
,
&
resp
,
&
len
);
break
;
case
SASL_CANCEL
:
/* Remove the offending mechanism from the supported list */
...
...
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