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
75c94305
Commit
75c94305
authored
19 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some spelling errors in comments, and extraneous \n in failf logs.
parent
9ac99a80
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/url.c
+19
-19
19 additions, 19 deletions
lib/url.c
with
19 additions
and
19 deletions
lib/url.c
+
19
−
19
View file @
75c94305
...
...
@@ -362,7 +362,7 @@ CURLcode Curl_open(struct SessionHandle **curl)
data
->
set
.
ssl
.
verifypeer
=
TRUE
;
data
->
set
.
ssl
.
verifyhost
=
2
;
#ifdef CURL_CA_BUNDLE
/* This is our prefered CA cert bundle since install time */
/* This is our prefer
r
ed CA cert bundle since install time */
data
->
set
.
ssl
.
CAfile
=
(
char
*
)
CURL_CA_BUNDLE
;
#endif
}
...
...
@@ -1810,8 +1810,8 @@ ConnectionStore(struct SessionHandle *data,
}
/*
* This function logs in to a SOCKS4 proxy and sends the specifi
es
the final
* des
i
tination server.
* This function logs in to a SOCKS4 proxy and sends the specifi
cs to
the final
* destination server.
*
* Reference :
* http://socks.permeo.com/protocol/socks4.protocol
...
...
@@ -1886,7 +1886,7 @@ static int handleSock4Proxy(struct connectdata *conn)
}
if
(
!
hp
)
{
failf
(
conn
->
data
,
"Failed to resolve
\"
%s
\"
for SOCKS4 connect.
\n
"
,
failf
(
conn
->
data
,
"Failed to resolve
\"
%s
\"
for SOCKS4 connect."
,
conn
->
host
.
name
);
return
1
;
}
...
...
@@ -1903,7 +1903,7 @@ static int handleSock4Proxy(struct connectdata *conn)
/* Send request */
code
=
Curl_write
(
conn
,
sock
,
(
char
*
)
socksreq
,
packetsize
,
&
written
);
if
((
code
!=
CURLE_OK
)
||
(
written
!=
packetsize
))
{
failf
(
conn
->
data
,
"Failed to send SOCKS4 connect request.
\n
"
);
failf
(
conn
->
data
,
"Failed to send SOCKS4 connect request."
);
return
1
;
}
...
...
@@ -1912,7 +1912,7 @@ static int handleSock4Proxy(struct connectdata *conn)
/* Receive response */
result
=
Curl_read
(
conn
,
sock
,
(
char
*
)
socksreq
,
packetsize
,
&
actualread
);
if
((
result
!=
CURLE_OK
)
||
(
actualread
!=
packetsize
))
{
failf
(
conn
->
data
,
"Failed to receive SOCKS4 connect request ack.
\n
"
);
failf
(
conn
->
data
,
"Failed to receive SOCKS4 connect request ack."
);
return
1
;
}
...
...
@@ -1929,7 +1929,7 @@ static int handleSock4Proxy(struct connectdata *conn)
*
* 90: request granted
* 91: request rejected or failed
* 92: request rejected beca
s
ue SOCKS server cannot connect to
* 92: request rejected becau
s
e SOCKS server cannot connect to
* identd on the client
* 93: request rejected because the client program and identd
* report different user-ids
...
...
@@ -1938,7 +1938,7 @@ static int handleSock4Proxy(struct connectdata *conn)
/* wrong version ? */
if
(
socksreq
[
0
]
!=
0
)
{
failf
(
conn
->
data
,
"SOCKS4 reply has wrong version, version should be 4.
\n
"
);
"SOCKS4 reply has wrong version, version should be 4."
);
return
1
;
}
...
...
@@ -1951,7 +1951,7 @@ static int handleSock4Proxy(struct connectdata *conn)
case
91
:
failf
(
conn
->
data
,
"Can't complete SOCKS4 connection to %d.%d.%d.%d:%d. (%d)"
", request rejected or failed.
\n
"
,
", request rejected or failed."
,
(
unsigned
char
)
socksreq
[
4
],
(
unsigned
char
)
socksreq
[
5
],
(
unsigned
char
)
socksreq
[
6
],
(
unsigned
char
)
socksreq
[
7
],
(
unsigned
int
)
ntohs
(
*
(
unsigned
short
*
)(
&
socksreq
[
8
])),
...
...
@@ -1960,8 +1960,8 @@ static int handleSock4Proxy(struct connectdata *conn)
case
92
:
failf
(
conn
->
data
,
"Can't complete SOCKS4 connection to %d.%d.%d.%d:%d. (%d)"
", request rejected beca
s
ue SOCKS server cannot connect to "
"identd on the client.
\n
"
,
", request rejected becau
s
e SOCKS server cannot connect to "
"identd on the client."
,
(
unsigned
char
)
socksreq
[
4
],
(
unsigned
char
)
socksreq
[
5
],
(
unsigned
char
)
socksreq
[
6
],
(
unsigned
char
)
socksreq
[
7
],
(
unsigned
int
)
ntohs
(
*
(
unsigned
short
*
)(
&
socksreq
[
8
])),
...
...
@@ -1971,7 +1971,7 @@ static int handleSock4Proxy(struct connectdata *conn)
failf
(
conn
->
data
,
"Can't complete SOCKS4 connection to %d.%d.%d.%d:%d. (%d)"
", request rejected because the client program and identd "
"report different user-ids.
\n
"
,
"report different user-ids."
,
(
unsigned
char
)
socksreq
[
4
],
(
unsigned
char
)
socksreq
[
5
],
(
unsigned
char
)
socksreq
[
6
],
(
unsigned
char
)
socksreq
[
7
],
(
unsigned
int
)
ntohs
(
*
(
unsigned
short
*
)(
&
socksreq
[
8
])),
...
...
@@ -1980,7 +1980,7 @@ static int handleSock4Proxy(struct connectdata *conn)
default
:
failf
(
conn
->
data
,
"Can't complete SOCKS4 connection to %d.%d.%d.%d:%d. (%d)"
", Unknown.
\n
"
,
", Unknown."
,
(
unsigned
char
)
socksreq
[
4
],
(
unsigned
char
)
socksreq
[
5
],
(
unsigned
char
)
socksreq
[
6
],
(
unsigned
char
)
socksreq
[
7
],
(
unsigned
int
)
ntohs
(
*
(
unsigned
short
*
)(
&
socksreq
[
8
])),
...
...
@@ -1995,8 +1995,8 @@ static int handleSock4Proxy(struct connectdata *conn)
}
/*
* This function logs in to a SOCKS5 proxy and sends the specifi
es
the final
* des
i
tination server.
* This function logs in to a SOCKS5 proxy and sends the specifi
cs to
the final
* destination server.
*/
static
int
handleSock5Proxy
(
const
char
*
proxy_name
,
const
char
*
proxy_password
,
...
...
@@ -2558,7 +2558,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
(
data
->
set
.
proxytype
==
CURLPROXY_HTTP
))
?
TRUE:
FALSE
;
/* http proxy or not */
/* Default protocol-independent behavior doesn't support persist
a
nt
/* Default protocol-independent behavior doesn't support persist
e
nt
connections, so we set this to force-close. Protocols that support
this need to set this to FALSE in their "curl_do" functions. */
conn
->
bits
.
close
=
TRUE
;
...
...
@@ -2571,7 +2571,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
conn
->
bits
.
use_range
=
data
->
set
.
set_range
?
TRUE
:
FALSE
;
/* range status */
conn
->
range
=
data
->
set
.
set_range
;
/* clone the range setting */
conn
->
resume_from
=
data
->
set
.
set_resume_from
;
/* inherit
e
resume_from */
conn
->
resume_from
=
data
->
set
.
set_resume_from
;
/* inherit resume_from */
conn
->
bits
.
user_passwd
=
data
->
set
.
userpwd
?
1
:
0
;
conn
->
bits
.
proxy_user_passwd
=
data
->
set
.
proxyuserpwd
?
1
:
0
;
...
...
@@ -3470,7 +3470,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
* so scribble it over the top.
* User-supplied passwords are assumed not to need unescaping.
*
* user_password is set in "inherit
e
initial knowledge' above,
* user_password is set in "inherit initial knowledge' above,
* so it doesn't have to be set in this block
*/
if
(
data
->
set
.
userpwd
!=
NULL
)
{
...
...
@@ -3654,7 +3654,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Continue connectdata initialization here.
*
* Inherit the proper values from the urldata struct AFTER we have arranged
* the persist
a
nt conncetion stuff */
* the persist
e
nt conncetion stuff */
conn
->
fread
=
data
->
set
.
fread
;
conn
->
fread_in
=
data
->
set
.
in
;
...
...
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