author | Myhailo Danylenko <isbear@ukrpost.net> |
Wed, 15 May 2013 13:32:42 +0300 | |
changeset 2076 | 9fb1ccf291cc |
parent 1811 | e6d355e50d7a |
child 2213 | 0c78d31c753d |
permissions | -rw-r--r-- |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
1 |
#ifndef __MCABBER_OTR_H__ |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
2 |
#define __MCABBER_OTR_H__ 1 |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
3 |
|
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
4 |
#include <mcabber/config.h> |
1299 | 5 |
|
6 |
#ifdef HAVE_LIBOTR |
|
7 |
||
2076
9fb1ccf291cc
Switch to libotr v4 API
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1811
diff
changeset
|
8 |
#ifndef HAVE_LIBOTR3 |
9fb1ccf291cc
Switch to libotr v4 API
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1811
diff
changeset
|
9 |
# include <libotr/instag.h> |
9fb1ccf291cc
Switch to libotr v4 API
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1811
diff
changeset
|
10 |
#endif |
1299 | 11 |
#include <libotr/proto.h> |
12 |
#include <libotr/message.h> |
|
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
13 |
#include <libotr/privkey.h> |
1299 | 14 |
|
15 |
enum otr_policy { |
|
16 |
plain, |
|
17 |
opportunistic, |
|
18 |
manual, |
|
19 |
always |
|
20 |
}; |
|
21 |
||
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
22 |
void otr_init(const char *jid); |
1299 | 23 |
void otr_terminate(void); |
24 |
||
25 |
void otr_establish (const char * buddy); |
|
26 |
void otr_disconnect (const char * buddy); |
|
27 |
void otr_fingerprint(const char * buddy, const char * trust); |
|
28 |
void otr_print_info (const char * buddy); |
|
29 |
||
30 |
void otr_smp_query (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); |
|
33 |
||
34 |
void otr_key (void); |
|
35 |
||
36 |
int otr_receive (char **otr_data, const char * buddy, int * free_msg); |
|
37 |
int otr_send (char **msg, const char *buddy); |
|
38 |
||
39 |
#endif /* HAVE_LIBOTR */ |
|
40 |
||
41 |
int otr_enabled (void); |
|
42 |
||
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
43 |
#endif /* __MCABBER_OTR_H__ */ |
1299 | 44 |
|
1811 | 45 |
/* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */ |