aboutsummaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-09-05 19:49:36 +0100
committerRichard van der Hoff <richard@matrix.org>2016-09-06 15:26:26 +0100
commit2fc83aa9aca1ce84b3c425a670cdf6a3a8886b34 (patch)
tree9b89ee865fc3b71f07d645dcd5c499672bca83eb /src/error.c
parent50cd2b2a430b379bf6cee1259867faa08daea1b7 (diff)
Sign megolm messages
Add ed25519 keys to the inbound and outbound sessions, and use them to sign and verify megolm messages. We just stuff the ed25519 public key in alongside the megolm session key (and add a version byte), to save adding more boilerplate to the JS/python/etc layers.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index b742197..f541a93 100644
--- a/src/error.c
+++ b/src/error.c
@@ -30,6 +30,7 @@ static const char * ERRORS[] = {
"BAD_SESSION_KEY",
"UNKNOWN_MESSAGE_INDEX",
"BAD_LEGACY_ACCOUNT_PICKLE",
+ "BAD_SIGNATURE",
};
const char * _olm_error_to_string(enum OlmErrorCode error)