wrapped set_ssl_option call into NO_SSL conditional. Fixed test.

This commit is contained in:
Sergey Lyubka committed 2010-08-31 11:58:45 +02:00
1 parent 63af66c61f
commit 75b6717d8b
2 files changed
+6 -4

No files matched your search

+4 -2
View File
@@ -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
// 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_gpass_option(ctx) ||
#if !defined(_WIN32)
!set_uid_option(ctx) ||
#endif