]> git.proxmox.com Git - swtpm.git/commit
swtpm: Include opensslv.h to get OPENSSL_VERSION_NUMBER
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 22 Aug 2022 17:59:34 +0000 (13:59 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 22 Aug 2022 19:27:17 +0000 (15:27 -0400)
commit98e84b2a850780eb2559a456a89e6341585911bb
treede35314e22d4ff266c19b943b38b2fff7b667120
parent0ebe80466fcbe7605db5d413f4370f2ccddf672b
swtpm: Include opensslv.h to get OPENSSL_VERSION_NUMBER

Include openssl/opensslv.h to avoid the following error on Ubuntu:

fips.c: In function 'fips_mode_enabled':
fips.c:61:16: error: implicit declaration of function 'EVP_default_properties_is_fips_enabled' [-Werror=implicit-function-declaration]
   61 |     int mode = EVP_default_properties_is_fips_enabled(NULL);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Resolves: https://github.com/stefanberger/libtpms/issues/345
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/swtpm/fips.c