summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffernandezmancera@gmail.com>2018-01-19 18:56:13 +0100
committerFernando Fernandez Mancera <ffernandezmancera@gmail.com>2018-01-19 18:56:13 +0100
commit5cd74b4884d35b43e464a3dcc6125f7ca2a3b0e3 (patch)
treecd428634588d2ff9a7de5d38a33ce0198904cff0
parentb3aa7be26c121d1a1fd6df7ab240745a08b6b406 (diff)
downloadtor-5cd74b4884d35b43e464a3dcc6125f7ca2a3b0e3.tar.gz
tor-5cd74b4884d35b43e464a3dcc6125f7ca2a3b0e3.zip
Add crypto_openssl_mgt.[ch] for compiling dependencies.
Included crypto_openssl_mgt.[ch] into the appropiate files in order to resolve compiling and dependencies issues. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
-rw-r--r--src/common/aes.c1
-rw-r--r--src/common/compat_openssl.h2
-rw-r--r--src/common/crypto_curve25519.h1
-rw-r--r--src/common/include.am2
4 files changed, 5 insertions, 1 deletions
diff --git a/src/common/aes.c b/src/common/aes.c
index 20b51a6758..20c1f758f9 100644
--- a/src/common/aes.c
+++ b/src/common/aes.c
@@ -18,6 +18,7 @@
#include <openssl/opensslv.h>
#include "crypto.h"
+#include "crypto_openssl_mgt.h"
#if OPENSSL_VERSION_NUMBER < OPENSSL_V_SERIES(1,0,0)
#error "We require OpenSSL >= 1.0.0"
diff --git a/src/common/compat_openssl.h b/src/common/compat_openssl.h
index c695f1e9df..d1b871b0f1 100644
--- a/src/common/compat_openssl.h
+++ b/src/common/compat_openssl.h
@@ -8,7 +8,7 @@
#define TOR_COMPAT_OPENSSL_H
#include <openssl/opensslv.h>
-
+#include "crypto_openssl_mgt.h"
/**
* \file compat_openssl.h
*
diff --git a/src/common/crypto_curve25519.h b/src/common/crypto_curve25519.h
index d024ab79f5..11f7423b07 100644
--- a/src/common/crypto_curve25519.h
+++ b/src/common/crypto_curve25519.h
@@ -6,6 +6,7 @@
#include "testsupport.h"
#include "torint.h"
+#include "crypto_openssl_mgt.h"
/** Length of a curve25519 public key when encoded. */
#define CURVE25519_PUBKEY_LEN 32
diff --git a/src/common/include.am b/src/common/include.am
index cd5eea3404..944dc028bd 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -118,6 +118,7 @@ LIBOR_CRYPTO_A_SRC = \
src/common/compress_zlib.c \
src/common/compress_zstd.c \
src/common/crypto.c \
+ src/common/crypto_openssl_mgt.c \
src/common/crypto_pwbox.c \
src/common/crypto_s2k.c \
src/common/crypto_format.c \
@@ -170,6 +171,7 @@ COMMONHEADERS = \
src/common/crypto_curve25519.h \
src/common/crypto_ed25519.h \
src/common/crypto_format.h \
+ src/common/crypto_openssl_mgt.h \
src/common/crypto_pwbox.h \
src/common/crypto_s2k.h \
src/common/di_ops.h \