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
d9f961ed
Commit
d9f961ed
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
better error output on SSL errors when receiving data - Georg Horn patch
parent
c7f54764
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+4
-0
4 additions, 0 deletions
CHANGES
lib/sendf.c
+9
-12
9 additions, 12 deletions
lib/sendf.c
with
13 additions
and
12 deletions
CHANGES
+
4
−
0
View file @
d9f961ed
...
...
@@ -7,6 +7,10 @@
Changelog
Daniel (19 October)
- Georg Horn made libcurl output more info on SSL failures when receiving
data.
Version 7.10.8-pre4 (18 October 2003)
Daniel (17 October)
...
...
This diff is collapsed.
Click to expand it.
lib/sendf.c
+
9
−
12
View file @
d9f961ed
...
...
@@ -383,19 +383,16 @@ int Curl_read(struct connectdata *conn,
case
SSL_ERROR_WANT_WRITE
:
/* there's data pending, re-invoke SSL_read() */
return
-
1
;
/* basicly EWOULDBLOCK */
case
SSL_ERROR_SYSCALL
:
/* openssl/ssl.h says "look at error stack/return value/errno" */
{
char
error_buffer
[
120
];
/* OpenSSL documents that this must be at least
120 bytes long. */
int
sslerror
=
ERR_get_error
();
failf
(
conn
->
data
,
"SSL read: %s, errno %d"
,
ERR_error_string
(
sslerror
,
error_buffer
),
Curl_ourerrno
()
);
}
return
CURLE_RECV_ERROR
;
default:
failf
(
conn
->
data
,
"SSL read error: %d"
,
err
);
/* openssl/ssl.h says "look at error stack/return value/errno" */
{
char
error_buffer
[
120
];
/* OpenSSL documents that this must be at
least 120 bytes long. */
int
sslerror
=
ERR_get_error
();
failf
(
conn
->
data
,
"SSL read: %s, errno %d"
,
ERR_error_string
(
sslerror
,
error_buffer
),
Curl_ourerrno
()
);
}
return
CURLE_RECV_ERROR
;
}
}
...
...
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