--- lbbs/src/common.c 2025/11/28 03:23:58 1.49 +++ lbbs/src/common.c 2026/01/09 11:14:54 1.54 @@ -3,7 +3,7 @@ * common * - common definitions * - * Copyright (C) 2004-2025 Leaflet + * Copyright (C) 2004-2026 Leaflet */ #ifdef HAVE_CONFIG_H @@ -13,8 +13,17 @@ #include "common.h" // Version -const char APP_INFO[] = PACKAGE_STRING " build on " __DATE__ " " __TIME__; -const char COPYRIGHT_INFO[] = "Copyright (C) 2004-2025 Leaflet \n" +#ifdef __x86_64__ +const char APP_INFO[] = PACKAGE_STRING " build (x86_64) on " __DATE__ " " __TIME__; +#else +#ifdef __aarch64__ +const char APP_INFO[] = PACKAGE_STRING " build (aarch64) on " __DATE__ " " __TIME__; +#else +const char APP_INFO[] = PACKAGE_STRING " build (i386) on " __DATE__ " " __TIME__; +#endif +#endif + +const char COPYRIGHT_INFO[] = "Copyright (C) 2004-2026 Leaflet \n" "This program comes with ABSOLUTELY NO WARRANTY.\n" "This is free software, and you are welcome to redistribute it \n" "under certain conditions; see the GNU General Public License \n" @@ -28,6 +37,8 @@ const char CONF_BWF[] = "conf/badwords.c const char CONF_TOP10_MENU[] = "var/bbs_top_menu.conf"; const char SSH_HOST_RSA_KEY_FILE[] = "conf/ssh_host_rsa_key"; const char SSH_HOST_ED25519_KEY_FILE[] = "conf/ssh_host_ed25519_key"; +const char SSH_HOST_ECDSA_KEY_FILE[] = "conf/ssh_host_ecdsa_key"; +const char SSH_KNOWN_HOSTS_FILE[] = "var/known_hosts"; const char LOG_FILE_INFO[] = "log/bbsd.log"; const char LOG_FILE_ERROR[] = "log/error.log"; @@ -35,6 +46,7 @@ const char LOG_FILE_ERROR[] = "log/error const char DATA_WELCOME[] = "data/welcome.txt"; const char DATA_REGISTER[] = "data/register.txt"; const char DATA_GOODBYE[] = "data/goodbye.txt"; +const char DATA_EULA[] = "data/eula.txt"; const char DATA_LICENSE[] = "data/license.txt"; const char DATA_COPYRIGHT[] = "data/copyright.txt"; const char DATA_VERSION[] = "data/version.txt"; @@ -59,6 +71,7 @@ const char *data_files_load_startup[] = DATA_WELCOME, DATA_REGISTER, DATA_GOODBYE, + DATA_EULA, DATA_LICENSE, DATA_COPYRIGHT, DATA_VERSION,