4 * This module handles self-service subscription/unsubscription to mail lists.
6 * Copyright (C) 2002 by Art Cancro and others.
7 * This code is released under the terms of the GNU General Public License.
20 #include <sys/types.h>
22 #if TIME_WITH_SYS_TIME
23 # include <sys/time.h>
27 # include <sys/time.h>
38 #include "sysdep_decls.h"
39 #include "citserver.h"
42 #include "dynloader.h"
49 #include "internet_addressing.h"
50 #include "serv_network.h"
51 #include "clientsocket.h"
60 * Generate a randomizationalisticized token to use for authentication of
61 * a subscribe or unsubscribe request.
63 void listsub_generate_token(char *buf) {
66 /* Theo, please sit down and shut up. This key doesn't have to be
67 * tinfoil-hat secure, it just needs to be reasonably unguessable.
69 sprintf(sourcebuf, "%d%d%ld",
75 /* Convert it to base64 so it looks cool */
76 encode_base64(buf, sourcebuf);
81 void cmd_subs(char *cmdbuf) {
82 cprintf("%d not yet implemented, dumbass...\n", ERROR);
89 char *Dynamic_Module_Init(void)
91 CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");