Return python int instead of c_uint32 for InboundGroupSession.decrypt message_index

Signed-off-by: Alexander Maznev <alexander.maznev@gmail.com>
This commit is contained in:
pik 2017-04-17 22:02:20 -05:00 committed by Richard van der Hoff
parent ed6ebb9a4d
commit 51840d82dc

View file

@ -119,7 +119,7 @@ class InboundGroupSession(object):
plaintext_buffer, max_plaintext_length, plaintext_buffer, max_plaintext_length,
byref(message_index) byref(message_index)
) )
return plaintext_buffer.raw[:plaintext_length], message_index return plaintext_buffer.raw[:plaintext_length], message_index.value
def session_id(self): def session_id(self):
id_length = lib.olm_inbound_group_session_id_length(self.ptr) id_length = lib.olm_inbound_group_session_id_length(self.ptr)