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
75b6717d
Commit
75b6717d
authored
Aug 31, 2010
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrapped set_ssl_option call into NO_SSL conditional. Fixed test.
parent
63af66c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
mongoose.c
mongoose.c
+4
-2
test.pl
test/test.pl
+2
-2
No files found.
mongoose.c
View file @
75b6717d
...
@@ -3853,9 +3853,11 @@ struct mg_context *mg_start(mg_callback_t user_callback, const char **options) {
...
@@ -3853,9 +3853,11 @@ struct mg_context *mg_start(mg_callback_t user_callback, const char **options) {
// NOTE(lsm): order is important here. SSL certificates must
// NOTE(lsm): order is important here. SSL certificates must
// be initialized before listening ports. UID must be set last.
// be initialized before listening ports. UID must be set last.
if
(
!
set_ssl_option
(
ctx
)
||
if
(
!
set_gpass_option
(
ctx
)
||
#if !defined(NO_SSL)
!
set_ssl_option
(
ctx
)
||
#endif
!
set_ports_option
(
ctx
)
||
!
set_ports_option
(
ctx
)
||
!
set_gpass_option
(
ctx
)
||
#if !defined(_WIN32)
#if !defined(_WIN32)
!
set_uid_option
(
ctx
)
||
!
set_uid_option
(
ctx
)
||
#endif
#endif
...
...
test/test.pl
View file @
75b6717d
...
@@ -385,9 +385,9 @@ sub do_PUT_test {
...
@@ -385,9 +385,9 @@ sub do_PUT_test {
sub
do_embedded_test
{
sub
do_embedded_test
{
my
$cmd
=
"cc -W -Wall -o $embed_exe $root/embed.c mongoose.c -I. "
.
my
$cmd
=
"cc -W -Wall -o $embed_exe $root/embed.c mongoose.c -I. "
.
"-pthread -DLISTENING_PORT=\\\"$port\\\""
;
"-pthread -D
NO_SSL -D
LISTENING_PORT=\\\"$port\\\""
;
if
(
on_windows
())
{
if
(
on_windows
())
{
$cmd
=
"cl $root/embed.c mongoose.c /I. /nologo "
.
$cmd
=
"cl $root/embed.c mongoose.c /I. /nologo
/DNO_SSL
"
.
"/DLISTENING_PORT=\\\"$port\\\" /link /out:$embed_exe.exe ws2_32.lib "
;
"/DLISTENING_PORT=\\\"$port\\\" /link /out:$embed_exe.exe ws2_32.lib "
;
}
}
print
$cmd
,
"\n"
;
print
$cmd
,
"\n"
;
...
...
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