diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-10-20 09:58:55 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-10-20 09:58:55 +0100 |
commit | 653790eacbf7dcf94cbf181657cdb0c30c890c3f (patch) | |
tree | 6cf8ca49bff13c01d18c15cd8e1a5e53c1cf9167 /include/olm/inbound_group_session.h | |
parent | 6ea9fb450ec1ef10b32d65ceb00a6042b927a95c (diff) |
Return the message index when decrypting group messages.
Applications can use the index to detect replays of the same message.
Diffstat (limited to 'include/olm/inbound_group_session.h')
-rw-r--r-- | include/olm/inbound_group_session.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/olm/inbound_group_session.h b/include/olm/inbound_group_session.h index 59146c2..f8a0bc3 100644 --- a/include/olm/inbound_group_session.h +++ b/include/olm/inbound_group_session.h @@ -140,7 +140,8 @@ size_t olm_group_decrypt( uint8_t * message, size_t message_length, /* output */ - uint8_t * plaintext, size_t max_plaintext_length + uint8_t * plaintext, size_t max_plaintext_length, + uint32_t * message_index ); |