-/*
- * NNTP server module FIXME THIS IS NOT FINISHED
- *
- * Copyright (c) 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
+//
+// NNTP server module FIXME THIS IS NOT FINISHED
+//
+// Copyright (c) 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.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
-/*
- * Tests whether the supplied string is a valid newsgroup name
- * Returns true (nonzero) or false (0)
- */
+//
+// Tests whether the supplied string is a valid newsgroup name
+// Returns true (nonzero) or false (0)
+//
-/*
- * Convert a newsgroup name to a Citadel room name.
- * This function recognizes names converted with room_to_newsgroup() and restores them with full fidelity.
- */
+//
+// Convert a newsgroup name to a Citadel room name.
+// This function recognizes names converted with room_to_newsgroup() and restores them with full fidelity.
+//
- /* Note: the FQDN *must* appear as the first thing after the 220 code.
- * Some clients (including citmail.c) depend on it being there.
- */
+ // Note: the FQDN *must* appear as the first thing after the 220 code.
+ // Some clients (including citmail.c) depend on it being there.
+ //
void nntps_greeting(void) {
CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
#ifdef HAVE_OPENSSL
void nntps_greeting(void) {
CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
#ifdef HAVE_OPENSSL
void nntp_authinfo_user(const char *username)
{
int a = CtdlLoginExistingUser(NULL, username);
void nntp_authinfo_user(const char *username)
{
int a = CtdlLoginExistingUser(NULL, username);
void nntp_authinfo(const char *cmd) {
if (!strncasecmp(cmd, "authinfo user ", 14)) {
void nntp_authinfo(const char *cmd) {
if (!strncasecmp(cmd, "authinfo user ", 14)) {
void output_roomname_in_list_format(struct ctdlroom *qrbuf, int which_format, char *wildmat_pattern) {
char n_name[1024];
struct nntp_msglist nm;
void output_roomname_in_list_format(struct ctdlroom *qrbuf, int which_format, char *wildmat_pattern) {
char n_name[1024];
struct nntp_msglist nm;
void nntp_newgroups(const char *cmd) {
/*
* HACK: this works because the 5XX series error codes from citadel
void nntp_newgroups(const char *cmd) {
/*
* HACK: this works because the 5XX series error codes from citadel
- /*
- * HACK: this works because the 5XX series error codes from citadel
- * protocol will also be considered error codes by an NNTP client
- */
+ //
+ // HACK: this works because the 5XX series error codes from citadel
+ // protocol will also be considered error codes by an NNTP client
+ //
void nntp_help(void) {
cprintf("100 This is the Citadel NNTP service.\r\n");
cprintf("RTFM http://www.ietf.org/rfc/rfc3977.txt\r\n");
void nntp_help(void) {
cprintf("100 This is the Citadel NNTP service.\r\n");
cprintf("RTFM http://www.ietf.org/rfc/rfc3977.txt\r\n");
void nntp_listgroup_backend(long msgnum, void *userdata) {
struct listgroup_range *lr = (struct listgroup_range *)userdata;
void nntp_listgroup_backend(long msgnum, void *userdata) {
struct listgroup_range *lr = (struct listgroup_range *)userdata;
void nntp_group(const char *cmd) {
/*
* HACK: this works because the 5XX series error codes from citadel
void nntp_group(const char *cmd) {
/*
* HACK: this works because the 5XX series error codes from citadel
-/*
- * Implements the ARTICLE, HEAD, BODY, and STAT commands.
- * (These commands all accept the same parameters; they differ only in how they output the retrieved message.)
- */
+//
+// Implements the ARTICLE, HEAD, BODY, and STAT commands.
+// (These commands all accept the same parameters; they differ only in how they output the retrieved message.)
+//
-/*****************************************************************************/
-/* MODULE INITIALIZATION STUFF */
-/*****************************************************************************/
+//****************************************************************************/
+// MODULE INITIALIZATION STUFF */
+//****************************************************************************/