comparison mcabber/mcabber/otr.h @ 2213:0c78d31c753d

Change otr_send() prototype This patch updates otr_send() in order to differenciate original and encrypted messages. It should also fix a memory leak of OTR-encrypted messages.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 05 Nov 2015 19:46:09 +0100
parents 9fb1ccf291cc
children
comparison
equal deleted inserted replaced
2212:778280b01bcb 2213:0c78d31c753d
31 void otr_smp_respond(const char * buddy, const char * secret); 31 void otr_smp_respond(const char * buddy, const char * secret);
32 void otr_smp_abort (const char * buddy); 32 void otr_smp_abort (const char * buddy);
33 33
34 void otr_key (void); 34 void otr_key (void);
35 35
36 int otr_receive (char **otr_data, const char * buddy, int * free_msg); 36 int otr_receive (char **otr_data, const char * buddy, int * free_msg);
37 int otr_send (char **msg, const char *buddy); 37 char *otr_send (const char * msg, const char * buddy, int * status);
38 38
39 #endif /* HAVE_LIBOTR */ 39 #endif /* HAVE_LIBOTR */
40 40
41 int otr_enabled (void); 41 int otr_enabled (void);
42 42