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
8e82ef9c
Commit
8e82ef9c
authored
13 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
http_negotiate_sspi.c: fix compiler warning
parent
d016f5f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/http_negotiate_sspi.c
+3
-2
3 additions, 2 deletions
lib/http_negotiate_sspi.c
lib/warnless.c
+19
-1
19 additions, 1 deletion
lib/warnless.c
lib/warnless.h
+3
-1
3 additions, 1 deletion
lib/warnless.h
with
25 additions
and
4 deletions
lib/http_negotiate_sspi.c
+
3
−
2
View file @
8e82ef9c
...
...
@@ -29,6 +29,7 @@
#include
"urldata.h"
#include
"sendf.h"
#include
"rawstr.h"
#include
"warnless.h"
#include
"curl_base64.h"
#include
"http_negotiate.h"
#include
"curl_memory.h"
...
...
@@ -189,7 +190,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
out_buff_desc
.
cBuffers
=
1
;
out_buff_desc
.
pBuffers
=
&
out_sec_buff
;
out_sec_buff
.
cbBuffer
=
neg_ctx
->
max_token_length
;
out_sec_buff
.
cbBuffer
=
curlx_uztoul
(
neg_ctx
->
max_token_length
)
;
out_sec_buff
.
BufferType
=
SECBUFFER_TOKEN
;
out_sec_buff
.
pvBuffer
=
neg_ctx
->
output_token
;
...
...
@@ -199,7 +200,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
in_buff_desc
.
cBuffers
=
1
;
in_buff_desc
.
pBuffers
=
&
in_sec_buff
;
in_sec_buff
.
cbBuffer
=
input_token_len
;
in_sec_buff
.
cbBuffer
=
curlx_uztoul
(
input_token_len
)
;
in_sec_buff
.
BufferType
=
SECBUFFER_TOKEN
;
in_sec_buff
.
pvBuffer
=
input_token
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/warnless.c
+
19
−
1
View file @
8e82ef9c
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 201
1
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 201
2
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -174,6 +174,24 @@ int curlx_uztosi(size_t uznum)
#endif
}
/*
** unsigned size_t to unsigned long
*/
unsigned
long
curlx_uztoul
(
size_t
uznum
)
{
#ifdef __INTEL_COMPILER
# pragma warning(push)
# pragma warning(disable:810)
/* conversion may lose significant bits */
#endif
return
(
unsigned
long
)(
uznum
&
(
size_t
)
CURL_MASK_ULONG
);
#ifdef __INTEL_COMPILER
# pragma warning(pop)
#endif
}
/*
** signed long to signed int
*/
...
...
This diff is collapsed.
Click to expand it.
lib/warnless.h
+
3
−
1
View file @
8e82ef9c
...
...
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 201
1
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 201
2
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -28,6 +28,8 @@ unsigned char curlx_ultouc(unsigned long ulnum);
int
curlx_uztosi
(
size_t
uznum
);
unsigned
long
curlx_uztoul
(
size_t
uznum
);
int
curlx_sltosi
(
long
slnum
);
unsigned
int
curlx_sltoui
(
long
slnum
);
...
...
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