From 76a91fca2fc7dd5975e8ff0e6695f27c98539dba Mon Sep 17 00:00:00 2001 From: hrxi Date: Fri, 24 Nov 2023 20:53:50 +0100 Subject: Add support for OpenSSL Uses work by @hrxi in https://github.com/dino/dino/pull/1515 Co-Authored-By: hrxi --- plugins/omemo/src/native/context.vala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/omemo/src/native/context.vala') diff --git a/plugins/omemo/src/native/context.vala b/plugins/omemo/src/native/context.vala index b1f5945b..29a96bc1 100644 --- a/plugins/omemo/src/native/context.vala +++ b/plugins/omemo/src/native/context.vala @@ -1,7 +1,7 @@ namespace Omemo { public class Context { - internal NativeContext native_context; + public NativeContext native_context; private RecMutex mutex = RecMutex(); static void locking_function_lock(void* user_data) { @@ -29,10 +29,6 @@ public class Context { return new Store(this); } - public void randomize(uint8[] data) throws Error { - throw_by_code(native_random(data)); - } - public SignedPreKeyRecord generate_signed_pre_key(IdentityKeyPair identity_key_pair, int32 id, uint64 timestamp = 0) throws Error { if (timestamp == 0) timestamp = new DateTime.now_utc().to_unix(); SignedPreKeyRecord res; -- cgit v1.3