aboutsummaryrefslogtreecommitdiff
path: root/src/olm.cpp
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-07 09:01:38 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-07 09:01:38 +0100
commitf1cd5613f68beee08ab479edf2a5ae50c91a63fe (patch)
tree2c44982a8d65610aa564086ad78a6a16b8bc3d8f /src/olm.cpp
parent667e415c74570cd1feb19ebfe259ab196f09bdc9 (diff)
Remove the last resort one time key
Diffstat (limited to 'src/olm.cpp')
-rw-r--r--src/olm.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/olm.cpp b/src/olm.cpp
index f5425fa..3aab4e2 100644
--- a/src/olm.cpp
+++ b/src/olm.cpp
@@ -396,11 +396,12 @@ size_t olm_account_one_time_keys(
return size_t(-1);
}
std::uint8_t * output = from_c(identity_keys);
- output_key(from_c(account)->last_resort_one_time_key, '[', output);
+ std::uint8_t sep = '[';
output += OUTPUT_KEY_LENGTH;
for (auto const & key : from_c(account)->one_time_keys) {
- output_key(key, ',', output);
+ output_key(key, sep, output);
output += OUTPUT_KEY_LENGTH;
+ sep = ',';
}
output[0] = ']';
return length;