libpurple.framework 2.3.1 as before but with HAVE_OPENSSL defined, which enables...
[adiumx.git] / Source / AdiumOTREncryption.h
blob64c494479a79b384054b78d98a7af0e7a202986d
1 //
2 // AdiumOTREncryption.h
3 // Adium
4 //
5 // Created by Evan Schoenberg on 12/28/05.
6 //
8 #import <Adium/AIObject.h>
9 #import <OTR/context.h>
10 #import <OTR/userstate.h>
11 #import <Adium/AIContentControllerProtocol.h>
13 @class ESOTRPreferences, AIContentMessage, AIAccount, AIListContact, AIChat;
15 typedef enum {
16 TRUST_NOT_PRIVATE,
17 TRUST_UNVERIFIED,
18 TRUST_PRIVATE,
19 TRUST_FINISHED
20 } TrustLevel;
22 @interface AdiumOTREncryption : AIObject <AdiumMessageEncryptor> {
23 ESOTRPreferences *OTRPrefs;
26 - (void)willSendContentMessage:(AIContentMessage *)inContentMessage;
27 - (NSString *)decryptIncomingMessage:(NSString *)inString fromContact:(AIListContact *)inListContact onAccount:(AIAccount *)inAccount;
29 - (void)requestSecureOTRMessaging:(BOOL)inSecureMessaging inChat:(AIChat *)inChat;
30 - (void)promptToVerifyEncryptionIdentityInChat:(AIChat *)inChat;
32 - (void)prefsShouldUpdatePrivateKeyList;
33 - (void)prefsShouldUpdateFingerprintsList;
35 OtrlUserState otrg_get_userstate(void);
36 void otrg_ui_forget_fingerprint(Fingerprint *fingerprint);
37 void otrg_plugin_write_fingerprints(void);
38 void otrg_ui_update_keylist(void);
40 TrustLevel otrg_plugin_context_to_trust(ConnContext *context);
42 /* Generate a private key for the given accountname/protocol */
43 void otrg_plugin_create_privkey(const char *accountname,
44 const char *protocol);
46 @end