aboutsummaryrefslogtreecommitdiff
path: root/plugins/signal-protocol/src/signal_helper.c
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2019-02-12 15:27:58 -0600
committerMarvin W <git@larma.de>2019-02-12 15:27:58 -0600
commit4a8d628924bcf9fd4af2f39ca8477b33a9599196 (patch)
treedd28ed38b1b18f6e16a7420f0db48c6f8f71e490 /plugins/signal-protocol/src/signal_helper.c
parent864196d2acef3db047160b9da5803805067276c3 (diff)
downloaddino-4a8d628924bcf9fd4af2f39ca8477b33a9599196.tar.gz
dino-4a8d628924bcf9fd4af2f39ca8477b33a9599196.zip
Do not use signal_protocol_internal.h
Diffstat (limited to 'plugins/signal-protocol/src/signal_helper.c')
-rw-r--r--plugins/signal-protocol/src/signal_helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/signal-protocol/src/signal_helper.c b/plugins/signal-protocol/src/signal_helper.c
index 3630d6d6..9f313475 100644
--- a/plugins/signal-protocol/src/signal_helper.c
+++ b/plugins/signal-protocol/src/signal_helper.c
@@ -1,5 +1,4 @@
#include <signal_helper.h>
-#include <signal_protocol_internal.h>
#include <gcrypt.h>
@@ -78,7 +77,10 @@ session_signed_pre_key* session_signed_pre_key_new(uint32_t id, uint64_t timesta
return res;
}
-
+int signal_vala_randomize(uint8_t *data, size_t len) {
+ gcry_randomize(data, len, GCRY_STRONG_RANDOM);
+ return SG_SUCCESS;
+}
int signal_vala_random_generator(uint8_t *data, size_t len, void *user_data) {
gcry_randomize(data, len, GCRY_STRONG_RANDOM);