From 934db064a58ebec2edea83df4fa07e2c83220344 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 1 Sep 2010 23:09:27 +0100 Subject: Do encryption and decryption. Somehow SMP and other things aren't working so well yet, at least when testing with Pidgin on the other side. Not sure where the bug is. --- otr.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'otr.h') diff --git a/otr.h b/otr.h index c18d12af..41f54585 100644 --- a/otr.h +++ b/otr.h @@ -40,7 +40,6 @@ struct im_connection; struct account; -#ifdef WITH_OTR #include #include #include @@ -80,29 +79,4 @@ void otr_rename(const char *onick, const char *nnick); /* called from account_add() */ int otr_check_for_key(struct account *a); -/* called from imcb_buddy_msg() */ -char *otr_handle_message(struct im_connection *ic, const char *handle, - const char *msg); - -/* called from imc_buddy_msg() */ -int otr_send_message(struct im_connection *ic, const char *handle, const char *msg, - int flags); - -#else - -typedef void otr_t; -typedef void *OtrlMessageAppOps; - -#define otr_free(otr) {} -#define otr_load(irc) {} -#define otr_save(irc) {} -#define otr_remove(nick) {} -#define otr_rename(onick,nnick) {} -#define otr_check_for_key(acc) (0) -#define otr_handle_message(ic,handle,msg) (g_strdup(msg)) -#define otr_send_message(ic,h,m,f) (ic->acc->prpl->buddy_msg(ic,h,m,f)) - -void cmd_otr_nosupport(void *, char **); - -#endif #endif -- cgit v1.2.3