/*
* Main Citadel header file
*
- * Copyright (c) 1987-2013 by the citadel.org team
+ * Copyright (c) 1987-2014 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
* usually more strict because you're not really supposed to dump/load and
* upgrade at the same time.
*/
-#define REV_LEVEL 829 /* This version */
+#define REV_LEVEL 830 /* This version */
#define REV_MIN 591 /* Oldest compatible database */
#define EXPORT_REV_MIN 760 /* Oldest compatible export files */
#define LIBCITADEL_MIN 829 /* Minimum required version of libcitadel */
config.c_xmpp_c2s_port = 5222;
config.c_xmpp_s2s_port = 5269;
config.c_nntp_port = 119;
+ config.c_nntps_port = 563;
}
void setcfglen(void)
cprintf("%d\n", config.c_port_number);
cprintf("%d\n", config.c_ctdluid);
cprintf("%d\n", config.c_nntp_port);
+ cprintf("%d\n", config.c_nntps_port);
cprintf("000\n");
}
case 70:
config.c_nntp_port = atoi(buf);
break;
+ case 71:
+ config.c_nntp_port = atoi(buf);
+ break;
}
++a;
}
int c_spam_flag_only;
int c_guest_logins;
int c_nntp_port;
+ int c_nntps_port;
};
struct configlen {
long c_nodename;
cprintf("<c_pop3_fastest>%ld</c_pop3_fastest>\n", config.c_pop3_fastest);
cprintf("<c_spam_flag_only>%d</c_spam_flag_only>\n", config.c_spam_flag_only);
cprintf("<c_nntp_port>%d</c_nntp_port>\n", config.c_nntp_port);
+ cprintf("<c_nntps_port>%d</c_nntps_port>\n", config.c_nntps_port);
client_write("</config>\n", 10);
/* Export the control file */
else if (!strcasecmp(el, "c_pop3_fastest")) config.c_pop3_fastest = atol(ChrPtr(migr_chardata));
else if (!strcasecmp(el, "c_spam_flag_only")) config.c_spam_flag_only = atoi(ChrPtr(migr_chardata));
else if (!strcasecmp(el, "c_nntp_port")) config.c_nntp_port = atoi(ChrPtr(migr_chardata));
+ else if (!strcasecmp(el, "c_nntps_port")) config.c_nntps_port = atoi(ChrPtr(migr_chardata));
else return 0;
return 1; /* Found above...*/
}
}
const char *CitadelServiceNNTP="NNTP";
+const char *CitadelServiceNNTPS="NNTPS";
CTDL_MODULE_INIT(nntp)
{
if (!threading)
{
- CtdlRegisterServiceHook(119, // FIXME config.c_nntp_port,
+ CtdlRegisterServiceHook(config.c_nntp_port,
NULL,
nntp_greeting,
nntp_command_loop,
CitadelServiceNNTP);
#ifdef HAVE_OPENSSL
- CtdlRegisterServiceHook(563, // FIXME config.c_nntps_port,
+ CtdlRegisterServiceHook(config.c_nntps_port,
NULL,
nntps_greeting,
nntp_command_loop,
NULL,
- CitadelServiceNNTP);
+ CitadelServiceNNTPS);
#endif
CtdlRegisterCleanupHook(nntp_cleanup);
/*
* Transparently handle the upgrading of server data formats.
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2014 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 3.
config.c_xmpp_s2s_port = 5269;
}
- if (CitControl.version < 725) {
-
-
+ if (CitControl.version < 830) {
+ config.c_nntp_port = 119;
+ config.c_nntps_port = 563;
}
+
if (IsEmptyStr(config.c_default_cal_zone)) {
guess_time_zone();
}
GetDefaultVALINT(c_xmpp_c2s_port, 5222);
GetDefaultVALINT(c_xmpp_s2s_port, 5269);
GetDefaultVALINT(c_nntp_port, 119);
+ GetDefaultVALINT(c_nntps_port, 563);
#endif
}