diff --git a/src/tss2-fapi/ifapi_curl.c b/src/tss2-fapi/ifapi_curl.c index d26f626da..37f20239d 100644 --- a/src/tss2-fapi/ifapi_curl.c +++ b/src/tss2-fapi/ifapi_curl.c @@ -9,13 +9,18 @@ #include // for NID_crl_distribution_points, NID_info... #include // for PEM_read_bio_X509 #include // for STACK_OF -#include // for X509, ASN1_IA5STRING, X509_CRL, DIST_... #include // for X509_free, X509_STORE_add_cert, X509_... #include // for DIST_POINT_NAME, GENERAL_NAME, ACCESS... #include // for bool, false, true #include // for free, realloc #include // for memcpy, strdup, strlen +#if OPENSSL_VERSION_NUMBER < 0x30000000L +#include +#else +#include // for X509, ASN1_IA5STRING, X509_CRL, DIST_... +#endif + #include "fapi_certificates.h" // for root_cert_list #include "fapi_int.h" // for OSSL_FREE #include "ifapi_curl.h"