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
14b3a2e4
Commit
14b3a2e4
authored
10 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
sasl_sspi: Tell the server we don't support a GSSAPI receive buffer
parent
56632724
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_sspi.c
+14
-5
14 additions, 5 deletions
lib/curl_sasl_sspi.c
with
14 additions
and
5 deletions
lib/curl_sasl_sspi.c
+
14
−
5
View file @
14b3a2e4
...
...
@@ -471,6 +471,7 @@ CURLcode Curl_sasl_create_gssapi_security_message(struct SessionHandle *data,
SecBufferDesc
input_desc
;
SecBufferDesc
wrap_desc
;
unsigned
long
indata
=
0
;
unsigned
long
outdata
=
0
;
unsigned
long
qop
=
0
;
unsigned
long
sec_layer
=
0
;
unsigned
long
max_size
=
0
;
...
...
@@ -552,6 +553,14 @@ CURLcode Curl_sasl_create_gssapi_security_message(struct SessionHandle *data,
/* Extract the maximum message size the server can receive */
max_size
=
ntohl
(
indata
&
0xFFFFFF00
);
if
(
max_size
>
0
)
{
/* The server has told us it supports a maximum receive buffer, however, as
we don't require one unless we are encrypting data we, tell the server
our receive buffer is zero. */
max_size
=
0
;
}
outdata
=
htonl
(
max_size
)
|
sec_layer
;
/* Allocate the trailer */
trailer
=
malloc
(
sizes
.
cbSecurityTrailer
);
...
...
@@ -572,11 +581,11 @@ CURLcode Curl_sasl_create_gssapi_security_message(struct SessionHandle *data,
}
/* Populate the message with the security layer, client supported receive
message size
(lets claim to support the same as the server) an
d
authorization identity includ
ing
t
he
0x00 based terminator. Note: Dispite
RFC4752 Section 3.1 stating "The authorization identity is not terminated
with the zero-valued (%x00) octet." it seems
necessary to include it. */
memcpy
(
message
,
&
in
data
,
4
);
message size
and authorization identity including the 0x00 base
d
terminator. Note: Dispite RFC4752 Section 3.1 stat
ing
"T
he
authorization
identity is not terminated with the zero-valued (%x00) octet." it seems
necessary to include it. */
memcpy
(
message
,
&
out
data
,
4
);
strcpy
((
char
*
)
message
+
4
,
names
.
sUserName
);
/* Allocate the padding */
...
...
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