Browse Source

getdns: fix compilation without deprecated OpenSSL APIs

Since DSA is enabled, dsa.h is needed. Normally this header is included
implicitly with engine.h but with OPENSSL_API_COMPAT >= 0x10100000L ,
this is not so.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 4 years ago
parent
commit
26c7488d35
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      libs/getdns/patches/010-openssl-deprecated.patch

+ 13
- 0
libs/getdns/patches/010-openssl-deprecated.patch View File

@ -0,0 +1,13 @@
--- a/src/tls/val_secalgo.c
+++ b/src/tls/val_secalgo.c
@@ -72,6 +72,10 @@
#include <openssl/engine.h>
#endif
+#ifdef USE_DSA
+#include <openssl/dsa.h>
+#endif
+
/** fake DSA support for unit tests */
int fake_dsa = 0;
/** fake SHA1 support for unit tests */

Loading…
Cancel
Save