diff options
Diffstat (limited to 'tests/test_olm_sha256.cpp')
-rw-r--r-- | tests/test_olm_sha256.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_olm_sha256.cpp b/tests/test_olm_sha256.cpp index c6d0242..d76e592 100644 --- a/tests/test_olm_sha256.cpp +++ b/tests/test_olm_sha256.cpp @@ -1,13 +1,15 @@ #include "olm/olm.h" #include "unittest.hh" +#include <vector> + int main() { { TestCase("Olm sha256 test"); -std::uint8_t utility_buffer[::olm_utility_size()]; -::OlmUtility * utility = ::olm_utility(utility_buffer); +std::vector<std::uint8_t> utility_buffer(::olm_utility_size()); +::OlmUtility * utility = ::olm_utility(utility_buffer.data()); assert_equals(std::size_t(43), ::olm_sha256_length(utility)); std::uint8_t output[43]; |