mcabber/otr.h

43 lines
1011 B
C
Raw Normal View History

#ifndef __MCABBER_OTR_H__
#define __MCABBER_OTR_H__ 1
2007-08-30 00:52:51 +02:00
#ifdef HAVE_LIBOTR
#include <libotr/instag.h>
2007-08-30 00:52:51 +02:00
#include <libotr/proto.h>
#include <libotr/message.h>
2007-08-30 02:49:36 +02:00
#include <libotr/privkey.h>
2007-08-30 00:52:51 +02:00
enum otr_policy {
plain,
opportunistic,
manual,
always
};
2007-08-30 02:49:36 +02:00
void otr_init(const char *jid);
2007-08-30 00:52:51 +02:00
void otr_terminate(void);
void otr_establish (const char * buddy);
void otr_disconnect (const char * buddy);
void otr_fingerprint(const char * buddy, const char * trust);
void otr_print_info (const char * buddy);
void otr_smp_query (const char * buddy, const char * secret);
void otr_smp_respond(const char * buddy, const char * secret);
void otr_smp_abort (const char * buddy);
void otr_key (void);
int otr_receive (char **otr_data, const char * buddy, int * free_msg);
char *otr_send (const char * msg, const char * buddy, int * status);
2007-08-30 00:52:51 +02:00
#endif /* HAVE_LIBOTR */
int otr_enabled (void);
#endif /* __MCABBER_OTR_H__ */
2007-08-30 00:52:51 +02:00
2010-03-22 21:32:11 +01:00
/* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */