From 1606527263895b9e6598a26a340a6fd44a971749 Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Thu, 2 May 2024 17:02:45 +0200 Subject: [PATCH] X Signed-off-by: Andreas Fuchs --- src/tss2-fapi/ifapi_get_web_cert.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tss2-fapi/ifapi_get_web_cert.c b/src/tss2-fapi/ifapi_get_web_cert.c index db27f7851..ba430c2b5 100644 --- a/src/tss2-fapi/ifapi_get_web_cert.c +++ b/src/tss2-fapi/ifapi_get_web_cert.c @@ -11,13 +11,18 @@ #include // for buf_mem_st #include // for EVP_DigestUpdate, BIO_f_base64 #include // for SHA256_DIGEST_LENGTH -#include // for BIO, BUF_MEM, EVP_MD_CTX #include // for bool, true #include // for uint8_t #include // for NULL, size_t, snprintf, sprintf, FILE #include // for free, malloc, calloc #include // for strdup, strlen +#if OPENSSL_VERSION_NUMBER < 0x30000000L +#include +#else +#include // for X509, ASN1_IA5STRING, X509_CRL, DIST_... +#endif + #include "fapi_int.h" // for FAPI_CONTEXT, VENDOR_AMD, VENDOR_INTC #include "ifapi_config.h" // for IFAPI_CONFIG #include "ifapi_curl.h" // for ifapi_get_curl_buffer