Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
fb27395f
Commit
fb27395f
authored
10 years ago
by
Matt Jordan
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "tcptls: Avoiding ERR_remove_state in OpenSSL." into 11
parents
767d96cf
5cca9a66
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/libasteriskssl.c
+0
-35
0 additions, 35 deletions
main/libasteriskssl.c
main/tcptls.c
+4
-0
4 additions, 0 deletions
main/tcptls.c
with
4 additions
and
35 deletions
main/libasteriskssl.c
+
0
−
35
View file @
fb27395f
...
...
@@ -93,33 +93,6 @@ void SSL_load_error_strings(void)
#endif
}
void
ERR_load_SSL_strings
(
void
)
{
#if defined(AST_DEVMODE)
if
(
startup_complete
)
{
ast_debug
(
1
,
"Called after startup... ignoring!
\n
"
);
}
#endif
}
void
ERR_load_crypto_strings
(
void
)
{
#if defined(AST_DEVMODE)
if
(
startup_complete
)
{
ast_debug
(
1
,
"Called after startup... ignoring!
\n
"
);
}
#endif
}
void
ERR_load_BIO_strings
(
void
)
{
#if defined(AST_DEVMODE)
if
(
startup_complete
)
{
ast_debug
(
1
,
"Called after startup... ignoring!
\n
"
);
}
#endif
}
void
CRYPTO_set_id_callback
(
unsigned
long
(
*
func
)(
void
))
{
#if defined(AST_DEVMODE)
...
...
@@ -157,8 +130,6 @@ int ast_ssl_init(void)
void
(
*
real_CRYPTO_set_id_callback
)(
unsigned
long
(
*
)(
void
));
void
(
*
real_CRYPTO_set_locking_callback
)(
void
(
*
)(
int
,
int
,
const
char
*
,
int
));
void
(
*
real_SSL_load_error_strings
)(
void
);
void
(
*
real_ERR_load_SSL_strings
)(
void
);
void
(
*
real_ERR_load_BIO_strings
)(
void
);
const
char
*
errstr
;
/* clear any previous dynamic linker errors */
...
...
@@ -216,12 +187,6 @@ int ast_ssl_init(void)
get_OpenSSL_function
(
SSL_load_error_strings
);
real_SSL_load_error_strings
();
get_OpenSSL_function
(
ERR_load_SSL_strings
);
real_ERR_load_SSL_strings
();
get_OpenSSL_function
(
ERR_load_BIO_strings
);
real_ERR_load_BIO_strings
();
startup_complete
=
1
;
#endif
/* HAVE_OPENSSL */
...
...
This diff is collapsed.
Click to expand it.
main/tcptls.c
+
4
−
0
View file @
fb27395f
...
...
@@ -400,7 +400,11 @@ static int tcptls_stream_close(void *cookie)
if
(
!
stream
->
ssl
->
server
)
{
/* For client threads, ensure that the error stack is cleared */
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
ERR_remove_thread_state
(
NULL
);
#else
ERR_remove_state
(
0
);
#endif
/* OPENSSL_VERSION_NUMBER >= 0x10000000L */
}
SSL_free
(
stream
->
ssl
);
...
...
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