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
9771d184
Commit
9771d184
authored
Jun 06, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squashed -DNO_SSL build warning
parent
3ca6155a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
mongoose.c
mongoose.c
+9
-7
test.pl
test/test.pl
+1
-1
No files found.
mongoose.c
View file @
9771d184
...
...
@@ -357,6 +357,7 @@ static struct ssl_func ssl_sw[] = {
};
// Similar array as ssl_sw. These functions could be located in different lib.
#if !defined(NO_SSL)
static
struct
ssl_func
crypto_sw
[]
=
{
{
"CRYPTO_num_locks"
,
NULL
},
{
"CRYPTO_set_locking_callback"
,
NULL
},
...
...
@@ -365,6 +366,7 @@ static struct ssl_func crypto_sw[] = {
{
"ERR_error_string"
,
NULL
},
{
NULL
,
NULL
}
};
#endif // NO_SSL
#endif // NO_SSL_DL
static
const
char
*
month_names
[]
=
{
...
...
@@ -572,13 +574,6 @@ static void cry(struct mg_connection *conn, const char *fmt, ...) {
conn
->
request_info
.
log_message
=
NULL
;
}
// Return OpenSSL error message
static
const
char
*
ssl_error
(
void
)
{
unsigned
long
err
;
err
=
ERR_get_error
();
return
err
==
0
?
""
:
ERR_error_string
(
err
,
NULL
);
}
// Return fake connection structure. Used for logging, if connection
// is not applicable at the moment of logging.
static
struct
mg_connection
*
fc
(
struct
mg_context
*
ctx
)
{
...
...
@@ -3657,6 +3652,13 @@ static int set_uid_option(struct mg_context *ctx) {
#if !defined(NO_SSL)
static
pthread_mutex_t
*
ssl_mutexes
;
// Return OpenSSL error message
static
const
char
*
ssl_error
(
void
)
{
unsigned
long
err
;
err
=
ERR_get_error
();
return
err
==
0
?
""
:
ERR_error_string
(
err
,
NULL
);
}
static
void
ssl_locking_callback
(
int
mode
,
int
mutex_num
,
const
char
*
file
,
int
line
)
{
line
=
0
;
// Unused
...
...
test/test.pl
View file @
9771d184
...
...
@@ -439,7 +439,7 @@ sub do_PUT_test {
sub
do_unit_test
{
my
$cmd
=
"cc -W -Wall -o $unit_test_exe $root/unit_test.c -I. "
.
"-pthread -DNO_SSL "
;
"-pthread -DNO_SSL "
;
if
(
on_windows
())
{
$cmd
=
"cl $root/embed.c mongoose.c /I. /nologo /DNO_SSL "
.
"/DLISTENING_PORT=\\\"$port\\\" /link /out:$embed_exe.exe ws2_32.lib "
;
...
...
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