From 3933311d47b236aec9c92b8b64f3a94d6b031a79 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 14 Mar 2019 17:40:04 +0100 Subject: Use proper directories configuration from cmake --- common/config.h.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 common/config.h.in (limited to 'common/config.h.in') diff --git a/common/config.h.in b/common/config.h.in new file mode 100644 index 0000000..1263c7c --- /dev/null +++ b/common/config.h.in @@ -0,0 +1,21 @@ +#ifndef COMMON_CONFIG_H_ +#define COMMON_CONFIG_H_ + +#define LISTEN_PORT 2222 +#define MAX_HOSTNAME_LENGTH 64 +#define MAX_USERNAME_LENGTH 64 + +#define DSAKEY_PATH "@CMAKE_INSTALL_PREFIX@/etc/ssh_host_dsa_key" +#define RSAKEY_PATH "@CMAKE_INSTALL_PREFIX@/etc/ssh_host_rsa_key" +#define ECDSAKEY_PATH "@CMAKE_INSTALL_PREFIX@/etc/ssh_host_ecdsa_key" + +#define MYSQL_HOST "localhost" +#define MYSQL_USER "sshportal" +#define MYSQL_PASS "graou" +#define MYSQL_DB "sshportal" + +#define LOG_FILENAME_FORMAT "@CMAKE_INSTALL_PREFIX@/var/log/$d/$h/$u/$i.gz" // $d : date in iso format, $h : hostname, $u : username : $i session id +#define LOG_FILENAME_MAX_LEN 255 +#define LOG_DIRECTORY_MODE S_IRUSR | S_IWUSR | S_IXUSR + +#endif -- cgit v1.2.3