libkeymaster: Fix UniquePtr dependency lineage-17.1 lineage-18.0 lineage-18.1 lineage-19.1
authorLunarixus <Nathanb644@hotmail.co.uk>
Fri, 17 Apr 2020 18:49:00 +0000 (18:49 +0000)
committerJan Altensen <info@stricted.net>
Fri, 17 Apr 2020 18:57:13 +0000 (20:57 +0200)
Change-Id: I1d354461f5114e4f01b0b4899286845136320264
Signed-off-by: Lunarixus <Nathanb644@hotmail.co.uk>
libkeymaster/Android.mk
libkeymaster/keymaster_mobicore.cpp

index 6f22471cd13d8bd6616fa6d5d1179191ff1bbad5..ffff40c6c4b0fce074784f638b07b6fd60d7a872 100644 (file)
@@ -24,7 +24,8 @@ LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_SRC_FILES := keymaster_mobicore.cpp tlcTeeKeymaster_if.c
 LOCAL_C_INCLUDES := \
        $(MOBICORE_PATH)/daemon/ClientLib/public \
-       $(MOBICORE_PATH)/common/MobiCore/inc/
+       $(MOBICORE_PATH)/common/MobiCore/inc/ \
+        system/keymaster/include
 LOCAL_C_FLAGS = -fvisibility=hidden -Wall -Werror
 LOCAL_SHARED_LIBRARIES := libcrypto liblog libMcClient libnativehelper
 LOCAL_MODULE_TAGS := optional
index b056d07c5ffb5cc5118ef3fc45a8e1dc23e1d8c5..db29a0c54588b2613d6f61193eb229a94d455e30 100644 (file)
@@ -28,7 +28,7 @@
 #include <openssl/err.h>
 #include <openssl/x509.h>
 
-#include <nativehelper/UniquePtr.h>
+#include <keymaster/UniquePtr.h>
 
 #define LOG_TAG "ExynosKeyMaster"
 #include <cutils/log.h>
@@ -38,6 +38,8 @@
 #define RSA_KEY_BUFFER_SIZE   1536
 #define RSA_KEY_MAX_SIZE      (2048 >> 3)
 
+using keymaster::UniquePtr;
+
 struct BIGNUM_Delete {
     void operator()(BIGNUM* p) const {
         BN_free(p);