Explorar el Código

Include crypto_dh.h in order to solve dependency issues.

Included crypto_dh.h in some files in order to solve DH module dependency
issues.

Follows #24658.

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Fernando Fernandez Mancera hace 6 años
padre
commit
ffbf8673b5
Se han modificado 5 ficheros con 6 adiciones y 0 borrados
  1. 1 0
      src/common/crypto_s2k.c
  2. 2 0
      src/common/include.am
  3. 1 0
      src/common/tortls.c
  4. 1 0
      src/or/onion_ntor.c
  5. 1 0
      src/or/or.h

+ 1 - 0
src/common/crypto_s2k.c

@@ -15,6 +15,7 @@
 #include "compat.h"
 #include "crypto.h"
 #include "crypto_digest.h"
+#include "crypto_dh.h"
 #include "crypto_rand.h"
 #include "crypto_s2k.h"
 #include "crypto_util.h"

+ 2 - 0
src/common/include.am

@@ -115,6 +115,7 @@ LIBOR_CRYPTO_A_SRC = \
   src/common/compress_zlib.c	\
   src/common/compress_zstd.c	\
   src/common/crypto.c		\
+  src/common/crypto_dh.c       \
   src/common/crypto_digest.c     \
   src/common/crypto_format.c	\
   src/common/crypto_openssl_mgt.c    \
@@ -169,6 +170,7 @@ COMMONHEADERS = \
   src/common/confline.h				\
   src/common/container.h			\
   src/common/crypto.h				\
+  src/common/crypto_dh.h            \
   src/common/crypto_digest.h            \
   src/common/crypto_curve25519.h		\
   src/common/crypto_ed25519.h			\

+ 1 - 0
src/common/tortls.c

@@ -27,6 +27,7 @@
 
 #include "crypto.h"
 #include "crypto_rand.h"
+#include "crypto_dh.h"
 #include "crypto_util.h"
 #include "compat.h"
 

+ 1 - 0
src/or/onion_ntor.c

@@ -22,6 +22,7 @@
 
 #define ONION_NTOR_PRIVATE
 #include "crypto.h"
+#include "crypto_dh.h"
 #include "crypto_digest.h"
 #include "crypto_util.h"
 #include "onion_ntor.h"

+ 1 - 0
src/or/or.h

@@ -68,6 +68,7 @@
 
 #include "crypto.h"
 #include "crypto_format.h"
+#include "crypto_dh.h"
 #include "tortls.h"
 #include "torlog.h"
 #include "container.h"