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
30eab8ca
Commit
30eab8ca
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
moved curl_read() and curl_write() to sendf.c
parent
e49a82b0
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
+0
-61
0 additions, 61 deletions
lib/url.c
with
0 additions
and
61 deletions
lib/url.c
+
0
−
61
View file @
30eab8ca
...
...
@@ -546,67 +546,6 @@ RETSIGTYPE alarmfunc(int signal)
}
#endif
CURLcode
curl_write
(
CURLconnect
*
c_conn
,
char
*
buf
,
size_t
amount
,
size_t
*
n
)
{
struct
connectdata
*
conn
=
(
struct
connectdata
*
)
c_conn
;
struct
UrlData
*
data
;
size_t
bytes_written
;
if
(
!
n
||
!
conn
||
(
conn
->
handle
!=
STRUCT_CONNECT
))
return
CURLE_FAILED_INIT
;
data
=
conn
->
data
;
#ifdef USE_SSLEAY
if
(
data
->
ssl
.
use
)
{
bytes_written
=
SSL_write
(
data
->
ssl
.
handle
,
buf
,
amount
);
}
else
{
#endif
#ifdef KRB4
if
(
conn
->
sec_complete
)
bytes_written
=
sec_write
(
conn
,
conn
->
writesockfd
,
buf
,
amount
);
else
#endif
bytes_written
=
swrite
(
conn
->
writesockfd
,
buf
,
amount
);
#ifdef USE_SSLEAY
}
#endif
/* USE_SSLEAY */
*
n
=
bytes_written
;
return
CURLE_OK
;
}
CURLcode
curl_read
(
CURLconnect
*
c_conn
,
char
*
buf
,
size_t
buffersize
,
size_t
*
n
)
{
struct
connectdata
*
conn
=
(
struct
connectdata
*
)
c_conn
;
struct
UrlData
*
data
;
size_t
nread
;
if
(
!
n
||
!
conn
||
(
conn
->
handle
!=
STRUCT_CONNECT
))
return
CURLE_FAILED_INIT
;
data
=
conn
->
data
;
#ifdef USE_SSLEAY
if
(
data
->
ssl
.
use
)
{
nread
=
SSL_read
(
data
->
ssl
.
handle
,
buf
,
buffersize
);
}
else
{
#endif
#ifdef KRB4
if
(
conn
->
sec_complete
)
nread
=
sec_read
(
conn
,
conn
->
sockfd
,
buf
,
buffersize
);
else
#endif
nread
=
sread
(
conn
->
sockfd
,
buf
,
buffersize
);
#ifdef USE_SSLEAY
}
#endif
/* USE_SSLEAY */
*
n
=
nread
;
return
CURLE_OK
;
}
CURLcode
curl_disconnect
(
CURLconnect
*
c_connect
)
{
struct
connectdata
*
conn
=
c_connect
;
...
...
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