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
f5bb3701
Commit
f5bb3701
authored
13 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
gtls.c: gnutls_transport_set_global_errno() deprecated in version 2.12.3
parent
bae4e3f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/gtls.c
+11
-2
11 additions, 2 deletions
lib/gtls.c
with
11 additions
and
2 deletions
lib/gtls.c
+
11
−
2
View file @
f5bb3701
...
...
@@ -78,6 +78,17 @@ static void tls_log_func(int level, const char *str)
#endif
static
bool
gtls_inited
=
FALSE
;
#if defined(GNUTLS_VERSION_NUMBER)
# if (GNUTLS_VERSION_NUMBER >= 0x020c00)
# undef gnutls_transport_set_lowat
# define gnutls_transport_set_lowat(A,B) Curl_nop_stmt
# endif
# if (GNUTLS_VERSION_NUMBER >= 0x020c03)
# undef gnutls_transport_set_global_errno
# define gnutls_transport_set_global_errno(A) SET_ERRNO((A))
# endif
#endif
/*
* Custom push and pull callback functions used by GNU TLS to read and write
* to the socket. These functions are simple wrappers to send() and recv()
...
...
@@ -476,10 +487,8 @@ gtls_connect_step1(struct connectdata *conn,
gnutls_transport_set_push_function
(
session
,
Curl_gtls_push
);
gnutls_transport_set_pull_function
(
session
,
Curl_gtls_pull
);
#if GNUTLS_VERSION_NUMBER < 0x020c00
/* lowat must be set to zero when using custom push and pull functions. */
gnutls_transport_set_lowat
(
session
,
0
);
#endif
/* This might be a reconnect, so we check for a session ID in the cache
to speed up things */
...
...
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