void init_connection(struct vsf_session* p_sess) { if (tunable_setproctitle_enable) { vsf_sysutil_setproctitle("not logged in"); } /* Before we talk to the remote, make sure an alarm is set up in case * writing the initial greetings should block. */ vsf_cmdio_set_alarm(p_sess); /* Check limits before doing an implicit SSL handshake, to avoid DoS * attacks. This will result in plain text messages being sent to the SSL * client, but we can live with that. */ check_limits(p_sess); if (tunable_ssl_enable && tunable_implicit_ssl) { ssl_control_handshake(p_sess); } if (tunable_ftp_enable) { emit_greeting(p_sess); } parse_username_password(p_sess); }
void init_connection(struct vsf_session* p_sess) { if (tunable_setproctitle_enable) { vsf_sysutil_setproctitle("not logged in"); } #ifdef VSF_BUILD_SQLITE /* In stealth mode we wont answer the connection unless the remote host * is known to our database. */ if (tunable_sqlite_enable && tunable_stealth_mode) { int retval = vsf_db_check_remote_host(&p_sess->remote_ip_str); if (retval == 0) { /* The IP check failed we drop the connection silently. */ vsf_sysutil_shutdown_read_failok(VSFTP_COMMAND_FD); vsf_sysutil_exit(0); } } #endif /* Before we talk to the remote, make sure an alarm is set up in case * writing the initial greetings should block. */ vsf_cmdio_set_alarm(p_sess); emit_greeting(p_sess); parse_username_password(p_sess); }
void init_connection(struct vsf_session* p_sess) { if (tunable_setproctitle_enable) { vsf_sysutil_setproctitle("not logged in"); } /* Before we talk to the remote, make sure an alarm is set up in case * writing the initial greetings should block. */ vsf_cmdio_set_alarm(p_sess); emit_greeting(p_sess); parse_username_password(p_sess); }
void init_connection(struct vsf_session* p_sess) { if (tunable_setproctitle_enable) { vsf_sysutil_setproctitle("not logged in"); } /* Before we talk to the remote, make sure an alarm is set up in case * writing the initial greetings should block. */ vsf_cmdio_set_alarm(p_sess); /* Kitsune, prevent printing greeting if just updated */ if (!kitsune_is_updating()) { emit_greeting(p_sess); } parse_username_password(p_sess); }