]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge remote-tracking branch 'rl1987/ticket19979_2'
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Jun 2018 12:53:48 +0000 (08:53 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Jun 2018 12:53:48 +0000 (08:53 -0400)
1  2 
src/common/crypto_hkdf.c
src/test/test_crypto.c

index 46c30bc72bb40a1c1537df10520be9ff7d699efd,24d2ffd86d287b56a1a510153ebbdba05a3f038d..dd29c73cecb397d689563eea14fc99b653ce1f9d
@@@ -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 <openssl/opensslv.h>
+ #if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0)
+ #define HAVE_OPENSSL_HKDF 1
+ #include <openssl/kdf.h>
+ #endif
  /** Given <b>key_in_len</b> bytes of negotiated randomness in <b>key_in</b>
   * ("K"), expand it into <b>key_out_len</b> bytes of negotiated key material in
   * <b>key_out</b> by taking the first <b>key_out_len</b> bytes of
Simple merge