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
7831c1ae
Commit
7831c1ae
authored
17 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a few compile errors and warnings.
parent
5ce3eb06
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/ftp.c
+13
-6
13 additions, 6 deletions
lib/ftp.c
lib/http.c
+2
-0
2 additions, 0 deletions
lib/http.c
lib/url.c
+3
-3
3 additions, 3 deletions
lib/url.c
with
18 additions
and
9 deletions
lib/ftp.c
+
13
−
6
View file @
7831c1ae
...
...
@@ -4111,8 +4111,15 @@ static CURLcode Curl_ftp_setup_connection(struct connectdata * conn)
#ifndef CURL_DISABLE_HTTP
if
(
conn
->
handler
==
&
Curl_handler_ftp
)
conn
->
handler
=
&
Curl_handler_ftp_proxy
;
else
else
{
#ifdef USE_SSL
conn
->
handler
=
&
Curl_handler_ftps_proxy
;
#else
failf
(
data
,
"FTPS not supported!"
);
return
CURLE_UNSUPPORTED_PROTOCOL
;
#endif
}
#else
failf
(
data
,
"FTP over http proxy requires HTTP support built-in!"
);
return
CURLE_UNSUPPORTED_PROTOCOL
;
...
...
This diff is collapsed.
Click to expand it.
lib/http.c
+
2
−
0
View file @
7831c1ae
...
...
@@ -110,9 +110,11 @@
*/
static
CURLcode
Curl_https_connecting
(
struct
connectdata
*
conn
,
bool
*
done
);
#ifdef USE_SSL
static
int
Curl_https_getsock
(
struct
connectdata
*
conn
,
curl_socket_t
*
socks
,
int
numsocks
);
#endif
/*
* HTTP handler interface.
...
...
This diff is collapsed.
Click to expand it.
lib/url.c
+
3
−
3
View file @
7831c1ae
...
...
@@ -194,7 +194,7 @@ extern sigjmp_buf curl_jmpenv;
* Protocol table.
*/
static
const
struct
Curl_handler
*
protocols
[]
=
{
static
const
struct
Curl_handler
*
const
protocols
[]
=
{
#ifndef CURL_DISABLE_HTTP
&
Curl_handler_http
,
...
...
@@ -3020,7 +3020,7 @@ static CURLcode setup_range(struct SessionHandle *data)
static
CURLcode
setup_connection_internals
(
struct
SessionHandle
*
data
,
struct
connectdata
*
conn
)
{
const
struct
Curl_handler
*
*
pp
;
const
struct
Curl_handler
*
const
*
pp
;
const
struct
Curl_handler
*
p
;
CURLcode
result
;
...
...
@@ -3028,7 +3028,7 @@ static CURLcode setup_connection_internals(struct SessionHandle *data,
/* Scan protocol handler table. */
for
(
pp
=
protocols
;
p
=
*
pp
;
pp
++
)
for
(
pp
=
protocols
;
(
p
=
*
pp
)
!=
NULL
;
pp
++
)
if
(
strequal
(
p
->
scheme
,
conn
->
protostr
))
{
/* Protocol found in table. Perform setup complement if some. */
conn
->
handler
=
p
;
...
...
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