--- lbbs/src/common.c 2025/11/07 04:58:09 1.45 +++ lbbs/src/common.c 2025/11/30 11:12:06 1.50 @@ -6,10 +6,19 @@ * Copyright (C) 2004-2025 Leaflet */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "common.h" // Version const char APP_INFO[] = PACKAGE_STRING " build on " __DATE__ " " __TIME__; +const char COPYRIGHT_INFO[] = "Copyright (C) 2004-2025 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" + "version 3 for details.\n"; // Enviroment const char CONF_BBSD[] = "conf/bbsd.conf"; @@ -17,7 +26,9 @@ const char CONF_MENU[] = "var/menu_merge const char CONF_BBSNET[] = "conf/bbsnet.conf"; const char CONF_BWF[] = "conf/badwords.conf"; const char CONF_TOP10_MENU[] = "var/bbs_top_menu.conf"; -const char SSH_HOST_KEYFILE[] = "conf/ssh_host_rsa_key"; +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_KNOWN_HOSTS_FILE[] = "var/known_hosts"; const char LOG_FILE_INFO[] = "log/bbsd.log"; const char LOG_FILE_ERROR[] = "log/error.log"; @@ -61,14 +72,11 @@ const char *data_files_load_startup[] = const int data_files_load_startup_count = sizeof(data_files_load_startup) / sizeof(const char *); // Global declaration for sockets -int socket_server[2]; -int socket_client; char hostaddr_client[IP_ADDR_LEN]; int port_client; // SSHv2 int SSH_v2 = 0; -ssh_bind sshbind; ssh_session SSH_session; ssh_channel SSH_channel;