aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: 18815e8756da547a8ebcc97431e71bd11ef15ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef CONFIG_H_
#define CONFIG_H_

#define LISTEN_PORT 2222
#define MAX_HOSTNAME_LENGTH 64
#define MAX_USERNAME_LENGTH 64

#define DSAKEY_PATH "./ssh_host_dsa_key"
#define RSAKEY_PATH "./ssh_host_rsa_key"
#define ECDSAKEY_PATH "./ssh_host_ecdsa_key"

#define MYSQL_HOST "::"
#define MYSQL_USER "root"
#define MYSQL_PASS "graou"
#define MYSQL_DB "sshportal"

#define SESSION_RECORDING  // comment this to deactivate
#define LOG_FILENAME_FORMAT "./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

#define LIBSSH_VERBOSE_OUTPOUT // comment this to deactivate

#endif