crypto: Remove unnecessary curve25519 header from crypto_digest.h.

* ADD includes for "torint.h" and "container.h" to crypto_digest.h.
 * ADD includes for "crypto_digest.h" to a couple places in which
   crypto_digest_t was then missing.
 * FIXES part of #24658: https://bugs.torproject.org/24658#comment:30
This commit is contained in:
Isis Lovecruft 2018-02-20 19:42:02 +00:00
parent 0fad49e1c4
commit 3e9140e79a
No known key found for this signature in database
GPG key ID: B8938BC5E86C046F
4 changed files with 5 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#include "testsupport.h" #include "testsupport.h"
#include "torint.h" #include "torint.h"
#include "crypto_digest.h"
#include "crypto_openssl_mgt.h" #include "crypto_openssl_mgt.h"
/** Length of a curve25519 public key when encoded. */ /** Length of a curve25519 public key when encoded. */

View file

@ -18,6 +18,7 @@
DISABLE_GCC_WARNING(redundant-decls) DISABLE_GCC_WARNING(redundant-decls)
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include <openssl/sha.h>
ENABLE_GCC_WARNING(redundant-decls) ENABLE_GCC_WARNING(redundant-decls)

View file

@ -15,7 +15,8 @@
#include <stdio.h> #include <stdio.h>
#include "crypto_curve25519.h" #include "container.h"
#include "torint.h"
/** Length of the output of our message digest. */ /** Length of the output of our message digest. */
#define DIGEST_LEN 20 #define DIGEST_LEN 20

View file

@ -9,6 +9,7 @@
#define HS_DESCRIPTOR_PRIVATE #define HS_DESCRIPTOR_PRIVATE
#include "crypto_ed25519.h" #include "crypto_ed25519.h"
#include "crypto_digest.h"
#include "ed25519_cert.h" #include "ed25519_cert.h"
#include "or.h" #include "or.h"
#include "hs_descriptor.h" #include "hs_descriptor.h"