diff options
| author | hrxi <hrrrxi@gmail.com> | 2023-11-24 20:53:50 +0100 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-10-23 16:58:30 +0200 |
| commit | 76a91fca2fc7dd5975e8ff0e6695f27c98539dba (patch) | |
| tree | 7829340be71fe60ef847247e578c4589571fecc5 /plugins/omemo/src/native/context.vala | |
| parent | b013d28182ce582f229185c23b6011f566f1f8cc (diff) | |
Add support for OpenSSL
Uses work by @hrxi in https://github.com/dino/dino/pull/1515
Co-Authored-By: hrxi <hrrrxi@gmail.com>
Diffstat (limited to 'plugins/omemo/src/native/context.vala')
| -rw-r--r-- | plugins/omemo/src/native/context.vala | 6 |
1 files changed, 1 insertions, 5 deletions
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; |
