]> git.proxmox.com Git - mirror_ovs.git/commit
dhparams: Fix .c file generation with OpenSSL >= 1.1.1-pre9
authorTimothy Redaelli <tredaelli@redhat.com>
Fri, 7 Sep 2018 13:14:53 +0000 (15:14 +0200)
committerBen Pfaff <blp@ovn.org>
Fri, 7 Sep 2018 16:57:43 +0000 (09:57 -0700)
commitdc041eae5019a936618c398a2a1d106f65604ccc
tree3ee35b43416a4cd619fe462b3b8f8a7810874625
parent3869435f1acd923c8bf95011e5182fb5d6de4404
dhparams: Fix .c file generation with OpenSSL >= 1.1.1-pre9

Since OpenSSL upstream commit 201b305a2409
("apps/dsaparam.c generates code that is intended to be pasted or included into
an existing source file: the function is static, and the code doesn't include
dsa.h.  Match the generated C source style of dsaparam.") "openssl dhparam -C"
generates the get_dh functions as static, but the functions are used inside
stream-ssl.c and so the static keyword cannot be used.

This commit removes the static keyword from the get_dh functions during
dhparams.c file generation by restoring the current behaviour.

Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
build-aux/generate-dhparams-c