2 // AdiumOTREncryption.h
5 // Created by Evan Schoenberg on 12/28/05.
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
;
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
);