blob: 4acae80fa7c50746040eef30136b9ecb09baeb55 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 0fe6770b617af7e400abc6f8652c1417d4c3575e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 8 Sep 2018 22:49:15 -0700
4Subject: [PATCH] generate not static get_dh* functions
5
6Fixes build with OpenSSL 1.1.x
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 lib/automake.mk | 5 +++--
13 1 file changed, 3 insertions(+), 2 deletions(-)
14
15diff --git a/lib/automake.mk b/lib/automake.mk
16index bfbeb94..b53909a 100644
17--- a/lib/automake.mk
18+++ b/lib/automake.mk
19@@ -113,8 +113,9 @@ lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
20 (echo '#include "lib/dhparams.h"' && \
21 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
22 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
23- openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
24- | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
25+ openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) | \
26+ sed -e 's/\(get_dh[0-9]*\)()/\1(void)/' \
27+ -e 's/static DH \*get_dh/DH \*get_dh/' > lib/dhparams.c.tmp
28 mv lib/dhparams.c.tmp lib/dhparams.c
29 endif
30
31--
322.18.0
33