Functions | |
| std::string | sha256 (const std::string &str) |
| SSL_CTX * | initialize_ssl () |
| bool | authenticate_client (SSL *ssl, const std::string &client_ip) |
| std::string | list_files () |
| void | send_file (SSL *ssl, const std::string &file_name) |
| std::string | sanitize_path (const std::string &file_name) |
| void | handle_client (SSL *ssl, const std::string &client_ip) |
| int | main () |
Variables | |
| std::string | DIRECTORY = std::string(parseTOMLField(PARENT_LIB, PARENT_LIB_FIELD_DIR)) |
| const std::string | USERNAME = std::string(parseTOMLField(PARENT_FTP, PARENT_FTP_FIELD_USER)) |
| const std::string | SALT = std::string(parseTOMLField(PARENT_FTP, PARENT_FTP_FIELD_SALT)) |
| const std::string | PASSWORD_HASH |
| std::unordered_map< std::string, int > | auth_attempts |
| bool authenticate_client | ( | SSL * | ssl, |
| const std::string & | client_ip ) |
| void handle_client | ( | SSL * | ssl, |
| const std::string & | client_ip ) |
| SSL_CTX * initialize_ssl | ( | ) |
| std::string list_files | ( | ) |
| int main | ( | ) |
| std::string sanitize_path | ( | const std::string & | file_name | ) |
| void send_file | ( | SSL * | ssl, |
| const std::string & | file_name ) |
| std::string sha256 | ( | const std::string & | str | ) |
| std::unordered_map<std::string, int> auth_attempts |
| std::string DIRECTORY = std::string(parseTOMLField(PARENT_LIB, PARENT_LIB_FIELD_DIR)) |
| const std::string PASSWORD_HASH |
| const std::string SALT = std::string(parseTOMLField(PARENT_FTP, PARENT_FTP_FIELD_SALT)) |
| const std::string USERNAME = std::string(parseTOMLField(PARENT_FTP, PARENT_FTP_FIELD_USER)) |