From 4b18d70cd141c59252757dd399dc87f9af0a59bb Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 26 Sep 2024 21:21:44 +0000 Subject: [PATCH] add HAS_SSL git-svn-id: file:///raid/svn-personal/tewi/trunk@174 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/config.c | 9 ++++++++- Server/tw_version.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Server/config.c b/Server/config.c index a6a4d08..e620225 100644 --- a/Server/config.c +++ b/Server/config.c @@ -105,6 +105,9 @@ void tw_config_init(void) { #ifdef HAS_CHROOT tw_add_define("HAS_CHROOT"); #endif +#ifndef NO_SSL + tw_add_define("HAS_SSL"); +#endif } int tw_config_read(const char* path) { @@ -244,7 +247,11 @@ int tw_config_read(const char* path) { vhost = NULL; current = &config.root; } - } else if(cm_strcaseequ(r[0], "Listen") || cm_strcaseequ(r[0], "ListenSSL")) { + } else if(cm_strcaseequ(r[0], "Listen") +#ifndef NO_SSL + || cm_strcaseequ(r[0], "ListenSSL") +#endif + ) { for(i = 1; r[i] != NULL; i++) { uint64_t port = atoi(r[i]); cm_log("Config", "Going to listen at port %d%s", (int)port, cm_strcaseequ(r[0], "ListenSSL") ? " with SSL" : ""); diff --git a/Server/tw_version.h b/Server/tw_version.h index 440d863..bc82bca 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -7,7 +7,7 @@ extern "C" { #endif -#define TW_VERSION "1.08D\0" +#define TW_VERSION "1.09\0" const char* tw_get_version(void); const char* tw_get_platform(void); -- 2.43.0