aboutsummaryrefslogtreecommitdiff
path: root/include/olm/session.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/olm/session.hh')
-rw-r--r--include/olm/session.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/olm/session.hh b/include/olm/session.hh
index 9d44816..ce05fc8 100644
--- a/include/olm/session.hh
+++ b/include/olm/session.hh
@@ -131,6 +131,14 @@ struct Session {
std::uint8_t const * message, std::size_t message_length,
std::uint8_t * plaintext, std::size_t max_plaintext_length
);
+
+ /**
+ * Write a string describing this session and its state (not including the
+ * private key) into the buffer provided.
+ *
+ * Takes a buffer to write to and the length of that buffer
+ */
+ void describe(char *buf, size_t buflen);
};