Archived
1
0
Fork 0
This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
bastion/config.h

22 lines
592 B
C
Raw Normal View History

2018-07-31 08:52:51 +02:00
#ifndef CONFIG_H_
#define CONFIG_H_
#define LISTEN_PORT 2222
#define MAX_HOSTNAME_LENGTH 64
#define MAX_USERNAME_LENGTH 64
2018-07-31 08:52:51 +02:00
#define DSAKEY_PATH "./ssh_host_dsa_key"
#define RSAKEY_PATH "./ssh_host_rsa_key"
#define ECDSAKEY_PATH "./ssh_host_ecdsa_key"
#define MYSQL_HOST "localhost"
#define MYSQL_USER "sshportal"
#define MYSQL_PASS "graou"
#define MYSQL_DB "sshportal"
#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
2018-07-31 08:52:51 +02:00
#endif