"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "contrib/mod_sftp/mod_sftp.c" between
proftpd-1.3.6b.tar.gz and proftpd-1.3.6c.tar.gz

About: ProFTPD is a highly configurable FTP server software (with FTPS and SFTP support).

mod_sftp.c  (proftpd-1.3.6b):mod_sftp.c  (proftpd-1.3.6c)
skipping to change at line 1607 skipping to change at line 1607
"' is not a recognized policy", NULL)); "' is not a recognized policy", NULL));
} }
(void) add_config_param_str(cmd->argv[0], 1, cmd->argv[1]); (void) add_config_param_str(cmd->argv[0], 1, cmd->argv[1]);
return PR_HANDLED(cmd); return PR_HANDLED(cmd);
} }
/* Event handlers /* Event handlers
*/ */
static void sftp_chroot_ev(const void *event_data, void *user_data) {
(void) pr_table_add_dup(session.notes, "mod_sftp.chroot-path", event_data, 0);
}
extern pid_t mpid; extern pid_t mpid;
static void sftp_exit_ev(const void *event_data, void *user_data) { static void sftp_exit_ev(const void *event_data, void *user_data) {
/* Close any channels/sessions that remain open. */ /* Close any channels/sessions that remain open. */
sftp_channel_free(); sftp_channel_free();
sftp_keys_free(); sftp_keys_free();
sftp_kex_free(); sftp_kex_free();
skipping to change at line 2011 skipping to change at line 2015
NULL); NULL);
return 0; return 0;
} }
static int sftp_sess_init(void) { static int sftp_sess_init(void) {
config_rec *c; config_rec *c;
int times_gmt = TRUE; int times_gmt = TRUE;
c = find_config(main_server->conf, CONF_PARAM, "SFTPEngine", FALSE); c = find_config(main_server->conf, CONF_PARAM, "SFTPEngine", FALSE);
if (c) { if (c != NULL) {
sftp_engine = *((int *) c->argv[0]); sftp_engine = *((int *) c->argv[0]);
} }
if (!sftp_engine) if (sftp_engine == FALSE) {
return 0; return 0;
}
pr_event_register(&sftp_module, "core.chroot", sftp_chroot_ev, NULL);
pr_event_register(&sftp_module, "core.exit", sftp_exit_ev, NULL); pr_event_register(&sftp_module, "core.exit", sftp_exit_ev, NULL);
#ifdef PR_USE_DEVEL #ifdef PR_USE_DEVEL
pr_event_register(&sftp_module, "core.signal.USR2", sftp_sigusr2_ev, NULL); pr_event_register(&sftp_module, "core.signal.USR2", sftp_sigusr2_ev, NULL);
#endif /* PR_USE_DEVEL */ #endif /* PR_USE_DEVEL */
pr_event_register(&sftp_module, "mod_auth.max-clients", pr_event_register(&sftp_module, "mod_auth.max-clients",
sftp_max_conns_ev, NULL); sftp_max_conns_ev, NULL);
pr_event_register(&sftp_module, "mod_auth.max-clients-per-class", pr_event_register(&sftp_module, "mod_auth.max-clients-per-class",
sftp_max_conns_ev, NULL); sftp_max_conns_ev, NULL);
pr_event_register(&sftp_module, "mod_auth.max-clients-per-host", pr_event_register(&sftp_module, "mod_auth.max-clients-per-host",
sftp_max_conns_ev, NULL); sftp_max_conns_ev, NULL);
 End of changes. 5 change blocks. 
2 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)