aboutsummaryrefslogtreecommitdiff
path: root/include/olm/utility.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/olm/utility.hh')
-rw-r--r--include/olm/utility.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/olm/utility.hh b/include/olm/utility.hh
index 5329a59..d650abc 100644
--- a/include/olm/utility.hh
+++ b/include/olm/utility.hh
@@ -16,20 +16,20 @@
#ifndef UTILITY_HH_
#define UTILITY_HH_
-#include "olm/error.hh"
+#include "olm/error.h"
#include <cstddef>
#include <cstdint>
-namespace olm {
+struct _olm_ed25519_public_key;
-class Ed25519PublicKey;
+namespace olm {
struct Utility {
Utility();
- ErrorCode last_error;
+ OlmErrorCode last_error;
/** The length of a SHA-256 hash in bytes. */
std::size_t sha256_length();
@@ -48,7 +48,7 @@ struct Utility {
* last_error will be set with an error code. If the signature was too short
* or was not a valid signature then last_error will be BAD_MESSAGE_MAC. */
std::size_t ed25519_verify(
- Ed25519PublicKey const & key,
+ _olm_ed25519_public_key const & key,
std::uint8_t const * message, std::size_t message_length,
std::uint8_t const * signature, std::size_t signature_length
);