@@ -123,3 +123,4 @@ int EncryptedStream::writeFile (const int fd) const {
encrypted += out_buf;
return bd::Stream(encrypted).writeFile(fd);
}
+/* vim: set sts=2 sw=2 ts=8 et: */
@@ -268,3 +268,4 @@ int check_auth_dcc(Auth *auth, const char *cmd, const char *par)
{
return real_check_bind_dcc(cmd, auth->idx, par, auth);
@@ -242,3 +242,4 @@ b64dec_bd(const unsigned char *data, size_t *len)
b64dec_bd_buf(data, len, dest);
return dest;
@@ -113,3 +113,4 @@ writepid(const char *pidfile, pid_t pid)
} else
printf("* Warning! Could not write %s file!\n", pidfile);
@@ -886,3 +886,4 @@ void reload_bin_data() {
@@ -1401,3 +1401,4 @@ void init_botcmd()
add_builtins("bot", my_bot);
@@ -544,3 +544,4 @@ int add_note(char *to, char *from, char *msg, int idx, int echo)
return NOTE_ERROR;
@@ -1831,3 +1831,4 @@ void lower_bot_linked(int idx)
putbot(dcc[idx].nick, tmp);
@@ -961,3 +961,4 @@ void set_fish_key(char *target, bd::String key)
FishKeys[target] = fishData;
@@ -4862,3 +4862,4 @@ cmd_t C_dcc[] =
{"uplink", "a", (Function) cmd_uplink, NULL, HUB},
{NULL, NULL, NULL, NULL, 0}
};
@@ -45,3 +45,4 @@ dirname(const char *path)
return(bname);
@@ -252,3 +252,4 @@ int my_dn_expand(const unsigned char *msg, const unsigned char *eom, const unsig
return (n);
@@ -1227,3 +1227,4 @@ emacs_strftime (char *s, size_t maxsize, const char *format, const struct tm *tp
return my_strftime (s, maxsize, format, tp, 0);
#endif
@@ -178,3 +178,4 @@ inet_ntop6(const u_char *src, char *dst, socklen_t size)
#endif /* USE_IPV6 */
#endif /* !HAVE_INET_NTOP */
@@ -14,3 +14,4 @@ void *memcpy(void *dest, const void *src, size_t n)
#endif /* !HAVE_MEMCPY */
@@ -13,3 +13,4 @@ void *memset(void *dest, int c, size_t n)
#endif /* !HAVE_MEMSET */
@@ -62,3 +62,4 @@ void *my_realloc(void *ptr, size_t size)
return x;
@@ -662,3 +662,4 @@ egg_snprintf(char *str,size_t count,const char *fmt, ...)
#endif /* !HAVE_SNPRINTF */
@@ -29,3 +29,4 @@ int strncasecmp(const char *s1, const char *s2, size_t n)
return toupper(*s1) - toupper(*s2);
#endif /* !HAVE_STRNCASECMP */
@@ -13,3 +13,4 @@
# include "gnu_strftime.c"
#endif /* !HAVE_STRFTIME */
@@ -71,3 +71,4 @@ strlcat(char *dst, const char *src, size_t siz)
return (dlen + (s - src)); /* count does not include NUL */
@@ -47,3 +47,4 @@ strsep (char **stringp, const char *delim)
/* NOTREACHED */
@@ -1161,3 +1161,4 @@ void conf_setmypid(pid_t pid) {
@@ -298,3 +298,4 @@ void check_bind_time(struct tm *tm)
simple_snprintf(full, sizeof(full), "%02d %02d %02d %02d %04d", tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year + 1900);
check_bind(BT_time, full, NULL, tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year + 1900);
@@ -212,3 +212,4 @@ void btoh(const unsigned char *md, size_t md_len, char *buf, const size_t buf_le
doblock(3);
@@ -222,3 +222,4 @@ aes_decrypt_cbc_binary(const char *keydata, unsigned char *in, size_t *len, unsi
return out;
@@ -245,3 +245,4 @@ bf_decrypt_cbc_binary(const char *keydata, unsigned char *in, size_t *len, unsig
@@ -152,3 +152,4 @@ bool DH1080_comp(const bd::String privateKey, const bd::String theirPublicKeyB64
return true;
@@ -2173,3 +2173,4 @@ dcc_telnet_got_ident(int i, char *host)
else
dprintf(i, "%s\n", response(RES_USERNAME));
@@ -1226,3 +1226,4 @@ void cmdpass_free(struct cmd_pass *x)
free(cp);
@@ -287,3 +287,4 @@ void init_signals()
signal(SIGHUP, got_hup);
signal(SIGUSR1, got_usr1);
@@ -106,3 +106,4 @@ DH *get_dh512() {
iDezzV0CAwY1RzzZRJm7m0wkssATAgEC
-----END DH PARAMETERS-----
*/
@@ -33,3 +33,4 @@
#include <bdlib/src/HashTable.h>
bd::HashTable<bd::String, FunctionPtr> dl_symbol_table;
@@ -348,3 +348,4 @@ struct enc_link enclink[] = {
{ "cleartext", LINK_CLEARTEXT, NULL, NULL, NULL, NULL },
{ NULL, 0, NULL, NULL, NULL, NULL }
@@ -668,3 +668,4 @@ void deflag_user(struct userrec *u, deflag_event_t why, const char *msg, const s
set_user(&USERENTRY_COMMENT, u, tmp2);
@@ -36,3 +36,4 @@ const char *degarble(int len, const char *g)
return (const char *) garble_buffer[garble_ptr];
@@ -134,3 +134,4 @@ int unload_libcrypto() {
return 1;
@@ -107,3 +107,4 @@ int unload_libssl() {
@@ -153,3 +153,4 @@ bd::String tcl_eval(const bd::String& str) {
return bd::String();
@@ -362,3 +362,4 @@ irc_log(struct chanset_t *chan, const char *format, ...)
@@ -935,3 +935,4 @@ int main(int argc, char **argv)
return 0; /* never reached but what the hell */
@@ -102,3 +102,4 @@ int main(int argc, char **argv) {
bd::String in(argv[1]), out(argv[2]);
return parse_help(in, out);
@@ -104,3 +104,4 @@ int main(int argc, char **argv) {
outs = bd::String::printf("%s/responses.h%s", argv[2], argc == 4 ? "~" : "");
return parse_res(in, out, outs);
@@ -47,3 +47,4 @@ int main(int argc, char *argv[]) {
return 0;
@@ -0,0 +1 @@
@@ -327,3 +327,4 @@ match_cidr(const char *m, const char *a)
@@ -1445,3 +1445,4 @@ int skipline (char *line, int *skip) {
return (*skip);
@@ -331,3 +331,4 @@ bool Tempfile::FindDir()
return ERROR;
@@ -1196,3 +1196,4 @@ int channel_add(char *result, const char *newname, char *options, bool isdefault
join_chan(chan);
return ret;
@@ -925,3 +925,4 @@ void channels_init()
add_builtins("bot", channels_bot);
add_builtins("chon", my_chon);
@@ -1396,3 +1396,4 @@ static cmd_t C_dcc_channels[] =
{"unstick", "o|o", (Function) cmd_unstick, NULL, AUTH},
@@ -1060,3 +1060,4 @@ void check_expired_masks()
if (use_invites)
check_expired_mask('I');
@@ -411,3 +411,4 @@ void compress_init()
uff_addtable(compress_uff_table);
@@ -392,3 +392,4 @@ console_init()
add_entry_type(&USERENTRY_CONSOLE);
@@ -730,3 +730,4 @@ void ctcp_init()
timer_create_secs(60, "ctcp_minutely", (Function) ctcp_minutely);
@@ -3516,3 +3516,4 @@ static cmd_t irc_raw[] =
{"710", "", (Function) got710, "irc:710", LEAF},
@@ -1979,3 +1979,4 @@ static cmd_t irc_dcc[] =
@@ -1771,3 +1771,4 @@ irc_init()
add_builtins("raw", irc_raw);
add_builtins("msg", C_msg);
@@ -1577,3 +1577,4 @@ gotmode(char *from, char *msg)
@@ -477,3 +477,4 @@ static cmd_t C_msg[] =
{"bewm", "", (Function) msg_bewm, NULL, LEAF},
@@ -231,3 +231,4 @@ static cmd_t C_dcc_serv[] =
@@ -1220,3 +1220,4 @@ void server_init()
timer_create_secs(60, "server_minutely", (Function) server_minutely);
// timer_create_secs(60, "minutely_checks", (Function) minutely_checks);
@@ -2209,3 +2209,4 @@ fatal_dns:
lostdcc(idx);
return;
@@ -1710,3 +1710,4 @@ share_init()
def_dcc_bot_kill = DCC_BOT.kill;
DCC_BOT.kill = cancel_user_xfer;
@@ -908,3 +908,4 @@ void transfer_report(int idx, int details)
void transfer_init()
@@ -481,3 +481,4 @@ void update_init()
timer_create_secs(30, "check_updates", (Function) check_updates);
@@ -1707,3 +1707,4 @@ bool socket_run() {
@@ -162,3 +162,4 @@ static int seed_PRNG(void)
@@ -50,3 +50,4 @@ r_banned(struct chanset_t *chan)
return response(RES_BANNED);
@@ -93,3 +93,4 @@ _rfc_toupper(int c)
return rfc_touppertab[(unsigned char) (c)];
@@ -1202,3 +1202,4 @@ int cmd_set_real(const char *botnick, int idx, char *par)
@@ -911,3 +911,4 @@ char *shell_escape(const char *path)
@@ -117,3 +117,4 @@ int main(int argc, char **argv) {
@@ -255,3 +255,4 @@ size_t simple_snprintf (char *buf, size_t size, const char *format, ...)
@@ -138,3 +138,4 @@ int main(int argc, char *argv[])
return !(readData);
@@ -82,3 +82,4 @@ printf("init_thread called from %d\n", pid);
pthread_create(&thread, &thread_attr, &thread_main, (void *) pid);
@@ -35,3 +35,4 @@ int main(int argc, char *argv[])
@@ -1121,3 +1121,4 @@ bool set_user(struct user_entry_type *et, struct userrec *u, void *d)
return r;
@@ -848,3 +848,4 @@ void user_del_chan(char *dname)
@@ -1243,3 +1243,4 @@ void check_stale_dcc_users()
@@ -12,3 +12,4 @@ int main() {