aboutsummaryrefslogtreecommitdiff
path: root/plugins/signal-protocol/vapi
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/vapi
parent4c8f4bef66a90c77899ba7eef61f2dc1366c4471 (diff)
downloaddino-7012023d5997287b1ed300e03a4c5b91eb6c9c39.tar.gz
dino-7012023d5997287b1ed300e03a4c5b91eb6c9c39.zip
Bump libsignal-protocol-c dependency to 2.3.2
Diffstat (limited to 'plugins/signal-protocol/vapi')
-rw-r--r--plugins/signal-protocol/vapi/signal-protocol-native.vapi10
-rw-r--r--plugins/signal-protocol/vapi/signal-protocol-public.vapi3
2 files changed, 7 insertions, 6 deletions
diff --git a/plugins/signal-protocol/vapi/signal-protocol-native.vapi b/plugins/signal-protocol/vapi/signal-protocol-native.vapi
index ed391020..9161a3ed 100644
--- a/plugins/signal-protocol/vapi/signal-protocol-native.vapi
+++ b/plugins/signal-protocol/vapi/signal-protocol-native.vapi
@@ -62,11 +62,11 @@ namespace Signal {
public void* user_data;
}
[CCode (has_target = false)]
- public delegate int LoadSessionFunc(out Buffer buffer, Address address, void* user_data);
+ public delegate int LoadSessionFunc(out Buffer record, out Buffer user_record, Address address, void* user_data);
[CCode (has_target = false)]
public delegate int GetSubDeviceSessionsFunc(out IntList sessions, char[] name, void* user_data);
[CCode (has_target = false)]
- public delegate int StoreSessionFunc(Address address, uint8[] record, void* user_data);
+ public delegate int StoreSessionFunc(Address address, uint8[] record, uint8[] user_record, void* user_data);
[CCode (has_target = false)]
public delegate int ContainsSessionFunc(Address address, void* user_data);
[CCode (has_target = false)]
@@ -134,9 +134,9 @@ namespace Signal {
void* user_data;
}
[CCode (has_target = false)]
- public delegate int StoreSenderKeyFunc(SenderKeyName sender_key_name, uint8[] record, void* user_data);
+ public delegate int StoreSenderKeyFunc(SenderKeyName sender_key_name, uint8[] record, uint8[] user_record, void* user_data);
[CCode (has_target = false)]
- public delegate int LoadSenderKeyFunc(out Buffer record, SenderKeyName sender_key_name, void* user_data);
+ public delegate int LoadSenderKeyFunc(out Buffer record, out Buffer user_record, SenderKeyName sender_key_name, void* user_data);
[CCode (has_target = false)]
public delegate int DestroyFunc(void* user_data);
@@ -271,4 +271,4 @@ namespace Signal {
public static void setup_crypto_provider(NativeContext context);
[CCode (cname = "signal_crypto_random", cheader_filename = "signal_protocol_internal.h")]
public static int native_random(NativeContext context, uint8[] data);
-} \ No newline at end of file
+}
diff --git a/plugins/signal-protocol/vapi/signal-protocol-public.vapi b/plugins/signal-protocol/vapi/signal-protocol-public.vapi
index bb22bdaa..0a4456ad 100644
--- a/plugins/signal-protocol/vapi/signal-protocol-public.vapi
+++ b/plugins/signal-protocol/vapi/signal-protocol-public.vapi
@@ -137,6 +137,7 @@ namespace Signal {
[CCode (cname = "session_record", cprefix = "session_record_", cheader_filename = "signal/signal_protocol_types.h")]
public class SessionRecord : TypeBase {
public SessionState state { get; }
+ public Buffer user_record { get; }
}
[Compact]
@@ -386,4 +387,4 @@ namespace Signal {
throw_by_code(aes_decrypt_(out buf, cipher, key, iv, ciphertext, null));
return buf.data;
}
-} \ No newline at end of file
+}