Update architecture checks for highwayhash

Now we use cmake to determine which compiler flags are set to
determine which implementation of highwayhash to compile. This should
be much more robust.

Also - fix missing include on old ubuntus.
This commit is contained in:
Johanna Amann 2020-05-12 12:03:10 -07:00
parent fd5e1ae42a
commit 7f137b7d50
4 changed files with 7 additions and 5 deletions

View file

@ -11,6 +11,7 @@
#include <openssl/evp.h>
#include <sys/types.h> // for u_char
#include <cstdint>
#if ( OPENSSL_VERSION_NUMBER < 0x10100000L ) || defined(LIBRESSL_VERSION_NUMBER)
#define EVP_MD_CTX_new EVP_MD_CTX_create