Change-Id: I1d354461f5114e4f01b0b4899286845136320264
Signed-off-by: Lunarixus <Nathanb644@hotmail.co.uk>
LOCAL_SRC_FILES := keymaster_mobicore.cpp tlcTeeKeymaster_if.c
LOCAL_C_INCLUDES := \
$(MOBICORE_PATH)/daemon/ClientLib/public \
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
LOCAL_C_FLAGS = -fvisibility=hidden -Wall -Werror
LOCAL_SHARED_LIBRARIES := libcrypto liblog libMcClient libnativehelper
LOCAL_MODULE_TAGS := optional
#include <openssl/err.h>
#include <openssl/x509.h>
#include <openssl/err.h>
#include <openssl/x509.h>
-#include <nativehelper/UniquePtr.h>
+#include <keymaster/UniquePtr.h>
#define LOG_TAG "ExynosKeyMaster"
#include <cutils/log.h>
#define LOG_TAG "ExynosKeyMaster"
#include <cutils/log.h>
#define RSA_KEY_BUFFER_SIZE 1536
#define RSA_KEY_MAX_SIZE (2048 >> 3)
#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);
struct BIGNUM_Delete {
void operator()(BIGNUM* p) const {
BN_free(p);