[Pkg-privacy-commits] [libotr] 45/225: updated README files for SMP, fragmentation

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:44:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository libotr.

commit 0958756abcab72308d84d8c8a211c92be5e4852f
Author: cialexan <cialexan>
Date:   Wed Aug 1 23:40:43 2007 +0000

    updated README files for SMP, fragmentation
---
 README | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/README b/README
index f974d43..2c6990b 100644
--- a/README
+++ b/README
@@ -125,6 +125,26 @@ If newmessage gets set by the call to something non-NULL, then you
 should replace your message with the contents of newmessage, and
 send that instead.
 
+Once the message is encrypted, it may still be too large to send over
+the network in a single piece.  To check the maximum message size and
+break your message into fragments if necessary, do this:
+
+    gcry_error_t err;
+    char *extrafragment = NULL;
+
+    err = otrl_message_fragment_and_send(&ui_ops, opdata, context,
+	    message, fragmentPolicy, extrafragment);
+
+fragmentPolicy determines which, if any, fragments to return instead
+of sending them immediately.  For example, you may wish to send all 
+fragments except the last one, which is handled differently.  Valid
+policies may be found in proto.h.
+
+If err returns a nonzero value from fragment_and_send, the application
+tried to break your message into fragments but failed for some reason.
+You may still attempt to send the original message, but it might be
+rejected if it too large.
+
 When you're done with newmessage, you must call
 
     otrl_message_free(newmessage)
@@ -161,6 +181,14 @@ If tlvs is set to non-NULL, then there is machine-readable data that was
 sent along with this message.  Call otrl_tlv_free(tlvs) when you're done
 dealing with it (or ignoring it).
 
+5. Socialist Millionaires' Protocol
+
+The Socialist Millionaires' Protocol (SMP) is a way to detect
+eavesdropping and man-in-the-middle attacks without requiring users to
+work with fingerprints.  This feature was added to OTR starting in
+version 3.1.0.  To learn how to modify your application to use SMP, read
+the UPGRADING file.
+
 TOOLKIT
 
 Along with the library, this package comes with the OTR Messaging

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git



More information about the Pkg-privacy-commits mailing list