diff options
Diffstat (limited to 'include/axolotl')
-rw-r--r-- | include/axolotl/list.hh | 4 | ||||
-rw-r--r-- | include/axolotl/message.hh | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/axolotl/list.hh b/include/axolotl/list.hh index ae41baa..a3c3d01 100644 --- a/include/axolotl/list.hh +++ b/include/axolotl/list.hh @@ -18,12 +18,12 @@ public: /** * Is the list empty? */ - bool empty() { return _end == _data; } + bool empty() const { return _end == _data; } /** * The number of items in the list. */ - std::size_t size() { return _end - _data; } + std::size_t size() const { return _end - _data; } T & operator[](std::size_t index) { return _data[index]; } diff --git a/include/axolotl/message.hh b/include/axolotl/message.hh index 85579cf..ac4b3e0 100644 --- a/include/axolotl/message.hh +++ b/include/axolotl/message.hh @@ -29,7 +29,6 @@ struct MessageReader { std::uint32_t counter; std::size_t ratchet_key_length; std::size_t ciphertext_length; - std::size_t mac_length; std::uint8_t const * ratchet_key; std::uint8_t const * ciphertext; std::uint8_t const * mac; |