const on right hand side

This commit is contained in:
Mark Haines 2015-03-03 15:08:26 +00:00
parent a0e9065f1f
commit 2f2e0340ae

View file

@ -274,7 +274,7 @@ std::size_t axolotl::Session::encrypt(
std::size_t padded = axolotl::aes_encrypt_cbc_length(plaintext_length); std::size_t padded = axolotl::aes_encrypt_cbc_length(plaintext_length);
std::uint32_t counter = keys.index; std::uint32_t counter = keys.index;
const Curve25519PublicKey &ratchet_key = sender_chain[0].ratchet_key; Curve25519PublicKey const & ratchet_key = sender_chain[0].ratchet_key;
axolotl::MessageWriter writer(axolotl::encode_message( axolotl::MessageWriter writer(axolotl::encode_message(
PROTOCOL_VERSION, counter, KEY_LENGTH, padded, output PROTOCOL_VERSION, counter, KEY_LENGTH, padded, output