aboutsummaryrefslogtreecommitdiff
path: root/tests/test_olm.cpp
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-08 14:53:25 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-08 14:53:25 +0100
commit5291ec78b5e0187aa873f911b9d907aa0139def5 (patch)
tree16e95740fd8c4455c109dee07e438431c63c1c53 /tests/test_olm.cpp
parent974e0984bd0d618093669780a75739d4b02fd3b2 (diff)
Send the public part of the one time key rather than passing an identifier
Diffstat (limited to 'tests/test_olm.cpp')
-rw-r--r--tests/test_olm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_olm.cpp b/tests/test_olm.cpp
index 8ea2462..7c3ec87 100644
--- a/tests/test_olm.cpp
+++ b/tests/test_olm.cpp
@@ -89,7 +89,7 @@ mock_random_a(a_rand, sizeof(a_rand));
assert_not_equals(std::size_t(-1), ::olm_create_outbound_session(
a_session, a_account,
b_id_keys + 88, 43,
- ::atol((char *)(b_ot_keys + 62)), b_ot_keys + 74, 43,
+ b_ot_keys + 74, 43,
a_rand, sizeof(a_rand)
));
@@ -193,7 +193,7 @@ mock_random_a(a_rand, sizeof(a_rand));
assert_not_equals(std::size_t(-1), ::olm_create_outbound_session(
a_session, a_account,
b_id_keys + 88, 43,
- ::atol((char *)(b_ot_keys + 62)), b_ot_keys + 74, 43,
+ b_ot_keys + 74, 43,
a_rand, sizeof(a_rand)
));