about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-11 23:03:07 +0000
committerJames Booth <boothj5@gmail.com>2014-02-11 23:03:07 +0000
commit42630139c2db02f430ef06f172201e8bc898dad4 (patch)
tree60f4b93e4c09b2d295b6b9ac2d639d3b322848da
parente07209ec4952b79ae4b0f7db4f273bc75bc93669 (diff)
downloadprofani-tty-42630139c2db02f430ef06f172201e8bc898dad4.tar.gz
Use instag master, and skip fragmentation
-rw-r--r--src/otr4.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/otr4.c b/src/otr4.c
index 80a0cdcb..84244dae 100644
--- a/src/otr4.c
+++ b/src/otr4.c
@@ -321,7 +321,7 @@ gboolean
 otr_is_secure(const char * const recipient)
 {
     ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
-        OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+        OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
     if (context == NULL) {
         return FALSE;
@@ -338,7 +338,7 @@ gboolean
 otr_is_trusted(const char * const recipient)
 {
     ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
-        OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+        OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
     if (context == NULL) {
         return FALSE;
@@ -360,7 +360,7 @@ void
 otr_trust(const char * const recipient)
 {
     ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
-        OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+        OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
     if (context == NULL) {
         return;
@@ -382,7 +382,7 @@ void
 otr_untrust(const char * const recipient)
 {
     ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
-        OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+        OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
     if (context == NULL) {
         return;
@@ -404,7 +404,7 @@ void
 otr_end_session(const char * const recipient)
 {
     ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
-        OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+        OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
     if (context != NULL) {
         otrl_message_disconnect(user_state, &ops, NULL, jid, "xmpp", recipient, 0);
@@ -425,7 +425,7 @@ char *
 otr_get_their_fingerprint(const char * const recipient)
 {
     ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
-        OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+        OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
     if (context != NULL) {
         Fingerprint *fingerprint = context->active_fingerprint;
@@ -450,11 +450,11 @@ otr_encrypt_message(const char * const to, const char * const message)
         jid,
         "xmpp",
         to,
-        OTRL_INSTAG_BEST,
+        OTRL_INSTAG_MASTER,
         message,
         0,
         &newmessage,
-        OTRL_FRAGMENT_SEND_ALL,
+        OTRL_FRAGMENT_SEND_SKIP,
         NULL,
         NULL,
         NULL);
@@ -491,7 +491,7 @@ otr_decrypt_message(const char * const from, const char * const message, gboolea
         tlv = otrl_tlv_find(tlvs, OTRL_TLV_DISCONNECTED);
         if (tlv) {
             ConnContext *context = otrl_context_find(user_state, from, jid, "xmpp",
-                OTRL_INSTAG_BEST, 0, NULL, NULL, NULL);
+                OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
 
             if (context != NULL) {
                 otrl_context_force_plaintext(context);