]> granicus.if.org Git - pdns/commitdiff
Fix build with OpenSSL 1.1.0 final
authorChristian Hofstaedtler <zeha@debian.org>
Fri, 2 Sep 2016 12:06:35 +0000 (12:06 +0000)
committerChristian Hofstaedtler <zeha@debian.org>
Fri, 2 Sep 2016 12:06:35 +0000 (12:06 +0000)
Where aes.h apparently no longer includes opensslv.h.

pdns/dns_random.cc

index 4f518e024b0d6147fe71397354800dc57d878efd..e772571b4c0a8be7d8dfb655f61fca47a982986e 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 #endif
 #include <openssl/aes.h>
+#include <openssl/opensslv.h>
 #if OPENSSL_VERSION_NUMBER > 0x1000100fL && !defined LIBRESSL_VERSION_NUMBER
 // Older OpenSSL does not have CRYPTO_ctr128_encrypt. Before 1.1.0 the header
 // file did not have the necessary extern "C" wrapper. In 1.1.0, AES_ctr128_encrypt