summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_rand.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-02-08 08:51:04 -0500
committerNick Mathewson <nickm@torproject.org>2019-02-08 08:51:23 -0500
commit49ec29044d12ff1d609ebe491f08f84e958be748 (patch)
tree87e7b48bf83fa497bc0c1690ea6c07fd11169740 /src/lib/crypt_ops/crypto_rand.c
parentb9abdcd6bce961baea17274ff6d213322d2b46d7 (diff)
downloadtor-49ec29044d12ff1d609ebe491f08f84e958be748.tar.gz
tor-49ec29044d12ff1d609ebe491f08f84e958be748.zip
Add more openssl includes to fix no-deprecated compilation
Closes ticket 29026; patch from Mangix.
Diffstat (limited to 'src/lib/crypt_ops/crypto_rand.c')
-rw-r--r--src/lib/crypt_ops/crypto_rand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c
index 70b2965ca4..915fe0870d 100644
--- a/src/lib/crypt_ops/crypto_rand.c
+++ b/src/lib/crypt_ops/crypto_rand.c
@@ -45,6 +45,7 @@
#ifdef ENABLE_OPENSSL
DISABLE_GCC_WARNING(redundant-decls)
#include <openssl/rand.h>
+#include <openssl/sha.h>
ENABLE_GCC_WARNING(redundant-decls)
#endif