From 3cd38e434b0b7805659de66dac343cfc788439f4 Mon Sep 17 00:00:00 2001 From: Martin Johansson Date: Tue, 14 May 2013 22:39:34 +0200 Subject: [PATCH] Fix using /dev/urandom since it wasn't working --- src/ssl.c | 1 + src/ssl.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 86e35a5..2ea92db 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -161,6 +161,7 @@ int urandom_bytes(void *ctx, unsigned char *dest, size_t len) continue; len -= cur; } + return 0; } #endif diff --git a/src/ssl.h b/src/ssl.h index 2aba396..75b44a0 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -49,6 +49,7 @@ #endif #ifdef USE_POLARSSL_HAVEGE +#include #if (POLARSSL_VERSION_MINOR >= 1) #define HAVEGE_RAND (havege_random) #define RAND_bytes(_dst_, _size_) do { \ -- 2.30.2