From: Nick Mathewson Date: Thu, 21 Jun 2018 12:53:48 +0000 (-0400) Subject: Merge remote-tracking branch 'rl1987/ticket19979_2' X-Git-Tag: tor-0.3.5.1-alpha~389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27e456cd72f33bff0e940a337877511ab7e5bb72;p=thirdparty%2Ftor.git Merge remote-tracking branch 'rl1987/ticket19979_2' --- 27e456cd72f33bff0e940a337877511ab7e5bb72 diff --cc src/common/crypto_hkdf.c index 46c30bc72b,24d2ffd86d..dd29c73cec --- a/src/common/crypto_hkdf.c +++ b/src/common/crypto_hkdf.c @@@ -9,10 -9,17 +9,18 @@@ * \brief Block of functions related with HKDF utilities and operations. **/ -#include "crypto_hkdf.h" -#include "crypto_util.h" -#include "crypto_digest.h" +#include "common/crypto_hkdf.h" +#include "common/crypto_util.h" +#include "common/crypto_digest.h" + + #include "crypto_openssl_mgt.h" + #include + + #if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0) + #define HAVE_OPENSSL_HKDF 1 + #include + #endif + /** Given key_in_len bytes of negotiated randomness in key_in * ("K"), expand it into key_out_len bytes of negotiated key material in * key_out by taking the first key_out_len bytes of