diff options
-rw-r--r-- | wpa_supplicant/Android.mk | 2 | ||||
-rw-r--r-- | wpa_supplicant/src/crypto/tls_openssl.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk index 2706193..64d37b7 100644 --- a/wpa_supplicant/Android.mk +++ b/wpa_supplicant/Android.mk @@ -1125,7 +1125,7 @@ endif ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),) LOCAL_STATIC_LIBRARIES += $(BOARD_WPA_SUPPLICANT_PRIVATE_LIB) endif -LOCAL_SHARED_LIBRARIES := libc libcutils libcrypto libssl +LOCAL_SHARED_LIBRARIES := libc libcutils libcrypto libssl libkeystore_binder LOCAL_CFLAGS := $(L_CFLAGS) LOCAL_SRC_FILES := $(OBJS) LOCAL_C_INCLUDES := $(INCLUDES) diff --git a/wpa_supplicant/src/crypto/tls_openssl.c b/wpa_supplicant/src/crypto/tls_openssl.c index 70fe79c..3e5d8ca 100644 --- a/wpa_supplicant/src/crypto/tls_openssl.c +++ b/wpa_supplicant/src/crypto/tls_openssl.c @@ -49,16 +49,17 @@ #ifdef ANDROID #include <openssl/pem.h> -#include "keystore_get.h" +#include <keystore/keystore_get.h> static BIO *BIO_from_keystore(const char *key) { BIO *bio = NULL; - char value[KEYSTORE_MESSAGE_SIZE]; - int length = keystore_get(key, strlen(key), value); + uint8_t *value = NULL; + int length = keystore_get(key, strlen(key), &value); if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) { BIO_write(bio, value, length); } + free(value); return bio; } #endif |