Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
a77519de
Commit
a77519de
authored
Jun 22, 2011
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uninitializing SSL on mg_stop()
parent
8942a4cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
mongoose.c
mongoose.c
+16
-0
No files found.
mongoose.c
View file @
a77519de
...
@@ -3647,6 +3647,18 @@ static int set_ssl_option(struct mg_context *ctx) {
...
@@ -3647,6 +3647,18 @@ static int set_ssl_option(struct mg_context *ctx) {
return
1
;
return
1
;
}
}
static
void
uninitialize_ssl
(
struct
mg_context
*
ctx
)
{
int
i
;
if
(
ctx
->
ssl_ctx
!=
NULL
)
{
CRYPTO_set_locking_callback
(
NULL
);
for
(
i
=
0
;
i
<
CRYPTO_num_locks
();
i
++
)
{
pthread_mutex_destroy
(
&
ssl_mutexes
[
i
]);
}
CRYPTO_set_locking_callback
(
NULL
);
CRYPTO_set_id_callback
(
NULL
);
}
}
#endif // !NO_SSL
#endif // !NO_SSL
static
int
set_gpass_option
(
struct
mg_context
*
ctx
)
{
static
int
set_gpass_option
(
struct
mg_context
*
ctx
)
{
...
@@ -4026,6 +4038,10 @@ static void master_thread(struct mg_context *ctx) {
...
@@ -4026,6 +4038,10 @@ static void master_thread(struct mg_context *ctx) {
(
void
)
pthread_cond_destroy
(
&
ctx
->
sq_empty
);
(
void
)
pthread_cond_destroy
(
&
ctx
->
sq_empty
);
(
void
)
pthread_cond_destroy
(
&
ctx
->
sq_full
);
(
void
)
pthread_cond_destroy
(
&
ctx
->
sq_full
);
#if !defined(NO_SSL)
uninitialize_ssl
(
ctx
);
#endif
// Signal mg_stop() that we're done
// Signal mg_stop() that we're done
ctx
->
stop_flag
=
2
;
ctx
->
stop_flag
=
2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment