diff --git a/src/ratchet.cpp b/src/ratchet.cpp index 72c6e8201f2a259c7c6f22bc73ab3deb9174aaa0..d2903bb85255b90aefef86d60ecc035c5d13c9a4 100644 --- a/src/ratchet.cpp +++ b/src/ratchet.cpp @@ -274,7 +274,7 @@ std::size_t axolotl::Session::encrypt( std::size_t padded = axolotl::aes_encrypt_cbc_length(plaintext_length); 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( PROTOCOL_VERSION, counter, KEY_LENGTH, padded, output