From 4d6c3ba8d1fa9d7886a6fdb3051e7a4a74c9a57c Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 6 Aug 2021 17:29:56 -0400 Subject: [PATCH] make account const in create_outbound_session --- include/olm/olm.h | 2 +- src/olm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/olm/olm.h b/include/olm/olm.h index e5aff67..e35ed0a 100644 --- a/include/olm/olm.h +++ b/include/olm/olm.h @@ -307,7 +307,7 @@ size_t olm_create_outbound_session_random_length( * be "NOT_ENOUGH_RANDOM". */ size_t olm_create_outbound_session( OlmSession * session, - OlmAccount * account, + OlmAccount const * account, void const * their_identity_key, size_t their_identity_key_length, void const * their_one_time_key, size_t their_one_time_key_length, void * random, size_t random_length diff --git a/src/olm.cpp b/src/olm.cpp index 660b21b..6dfa876 100644 --- a/src/olm.cpp +++ b/src/olm.cpp @@ -504,7 +504,7 @@ size_t olm_create_outbound_session_random_length( size_t olm_create_outbound_session( OlmSession * session, - OlmAccount * account, + OlmAccount const * account, void const * their_identity_key, size_t their_identity_key_length, void const * their_one_time_key, size_t their_one_time_key_length, void * random, size_t random_length