sgallagher / sscg

Simple Signed Certificate Generator
GNU General Public License v3.0
77 stars 13 forks source link

Fix build against OpenSSL 3.0 #50

Closed martinpitt closed 2 years ago

martinpitt commented 2 years ago

I noticed that @schopin-pro recently patched sscg to fix a build failure against OpenSSL 3.0 in Ubuntu:

../src/dhparams.c:237:8: error: implicit declaration of function ‘FIPS_mode’ [-Werror=implicit-function-declaration]
  237 |   if (!FIPS_mode ())
      |        ^~~~~~~~~
cc1: some warnings being treated as errors

At first sight that patch looks quite reasonable for upstream?

schopin-pro commented 2 years ago

Whoops, I totally forgot to upstream this, my bad! I'll post a PR for this shortly :)