aboutsummaryrefslogtreecommitdiff
path: root/src/axolotl.cpp
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-22 17:44:56 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-22 17:44:56 +0100
commit492dc1ab5875af5b6a1fb7039dd5262e55eb48eb (patch)
tree74001b5dc8388095e91b67cc97ab06e6c0212a54 /src/axolotl.cpp
parent408530adf9ec0fd7aa8a201103262eebfc9cfc3e (diff)
Add API docs for the axolotl.hh methods
Diffstat (limited to 'src/axolotl.cpp')
-rw-r--r--src/axolotl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/axolotl.cpp b/src/axolotl.cpp
index c195a7c..f03a01c 100644
--- a/src/axolotl.cpp
+++ b/src/axolotl.cpp
@@ -341,7 +341,7 @@ void output_key(
size_t axolotl_account_identity_keys_length(
AxolotlAccount * account
) {
- return OUTPUT_KEY_LENGTH * 2 + 1;
+ return OUTPUT_KEY_LENGTH + 1;
}
@@ -358,7 +358,6 @@ size_t axolotl_account_identity_keys(
std::uint8_t * output = from_c(identity_keys);
output_key(from_c(account)->identity_key, '[', output);
output += OUTPUT_KEY_LENGTH;
- output += OUTPUT_KEY_LENGTH;
output[0] = ']';
return length;
}