aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops
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
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')
-rw-r--r--src/lib/crypt_ops/crypto_hkdf.c1
-rw-r--r--src/lib/crypt_ops/crypto_rand.c1
-rw-r--r--src/lib/crypt_ops/crypto_rsa.c4
3 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_hkdf.c b/src/lib/crypt_ops/crypto_hkdf.c
index 6c82fa14f6..fd2e701651 100644
--- a/src/lib/crypt_ops/crypto_hkdf.c
+++ b/src/lib/crypt_ops/crypto_hkdf.c
@@ -18,6 +18,7 @@
#include "lib/log/util_bug.h"
#ifdef ENABLE_OPENSSL
+#include <openssl/evp.h>
#include <openssl/opensslv.h>
#if defined(HAVE_ERR_LOAD_KDF_STRINGS)
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
diff --git a/src/lib/crypt_ops/crypto_rsa.c b/src/lib/crypt_ops/crypto_rsa.c
index 2b977b0b9b..c9189b0dfc 100644
--- a/src/lib/crypt_ops/crypto_rsa.c
+++ b/src/lib/crypt_ops/crypto_rsa.c
@@ -31,6 +31,10 @@
#include <sys/stat.h>
#endif
+#ifdef ENABLE_OPENSSL
+#include <openssl/rsa.h>
+#endif
+
/** Return the number of bytes added by padding method <b>padding</b>.
*/
int