diff --git a/host/xtest/CMakeLists.txt b/host/xtest/CMakeLists.txt index e45fae558..42ebd0c5d 100644 --- a/host/xtest/CMakeLists.txt +++ b/host/xtest/CMakeLists.txt @@ -12,7 +12,7 @@ endif() find_package(OpenSSL) if(OPENSSL_FOUND) - add_compile_options(-DOPENSSL_FOUND=1) + add_compile_options(-DOPENSSL_FOUND=1 -DOPENSSL_API_COMPAT=10100) set (OPENSSL_PRIVATE_LINK OpenSSL::Crypto) endif() diff --git a/host/xtest/Makefile b/host/xtest/Makefile index ce55c3f52..dbfd39263 100644 --- a/host/xtest/Makefile +++ b/host/xtest/Makefile @@ -39,7 +39,7 @@ endef # - User/group login tests 1027 and 1028 WITH_OPENSSL ?= y ifeq ($(WITH_OPENSSL),y) -CFLAGS += -DOPENSSL_FOUND=1 +CFLAGS += -DOPENSSL_FOUND=1 -DOPENSSL_API_COMPAT=10100 ifneq ($(OPTEE_OPENSSL_EXPORT),) LDFLAGS += -lcrypto CFLAGS += -I$(OPTEE_OPENSSL_EXPORT)