aboutsummaryrefslogtreecommitdiff
path: root/plugins/signal-protocol/src/store.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2019-01-02 13:27:11 +0100
committerMarvin W <git@larma.de>2019-01-02 13:27:11 +0100
commit7012023d5997287b1ed300e03a4c5b91eb6c9c39 (patch)
tree7db4fc3213a96ea101dac39818e3a6ab29aa4c06 /plugins/signal-protocol/src/store.vala
parent4c8f4bef66a90c77899ba7eef61f2dc1366c4471 (diff)
downloaddino-7012023d5997287b1ed300e03a4c5b91eb6c9c39.tar.gz
dino-7012023d5997287b1ed300e03a4c5b91eb6c9c39.zip
Bump libsignal-protocol-c dependency to 2.3.2
Diffstat (limited to 'plugins/signal-protocol/src/store.vala')
-rw-r--r--plugins/signal-protocol/src/store.vala14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/signal-protocol/src/store.vala b/plugins/signal-protocol/src/store.vala
index 8a0e5853..2e277478 100644
--- a/plugins/signal-protocol/src/store.vala
+++ b/plugins/signal-protocol/src/store.vala
@@ -142,21 +142,22 @@ public class Store : Object {
return 0;
}
- static int ss_load_session_func(out Buffer? buffer, Address address, void* user_data) {
+ static int ss_load_session_func(out Buffer? record, out Buffer? user_record, Address address, void* user_data) {
Store store = (Store) user_data;
uint8[]? res = null;
try {
res = store.session_store.load_session(address);
} catch (Error e) {
- buffer = null;
+ record = null;
return e.code;
}
if (res == null) {
- buffer = null;
+ record = null;
return 0;
}
- buffer = new Buffer.from((!)res);
- if (buffer == null) return ErrorCode.NOMEM;
+ record = new Buffer.from((!)res);
+ user_record = null; // No support for user_record
+ if (record == null) return ErrorCode.NOMEM;
return 1;
}
@@ -171,7 +172,8 @@ public class Store : Object {
return 0;
}
- static int ss_store_session_func(Address address, uint8[] record, void* user_data) {
+ static int ss_store_session_func(Address address, uint8[] record, uint8[] user_record, void* user_data) {
+ // Ignoring user_record
Store store = (Store) user_data;
return catch_to_code(() => {
store.session_store.store_session(address, record);