diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-06-18 14:15:55 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-08-21 14:58:58 +0200 |
| commit | c2c9c383ab2de5b2ecd2cc24521a8183bf4ed275 (patch) | |
| tree | 104a4214a765b1e549b79d38e56cda9fdcec185a /mtk | |
| parent | bd52733c66b657d004920ec60f243dfa9b76bdea (diff) | |
libshim: split crypto & ssl symbols
Diffstat (limited to 'mtk')
| -rw-r--r-- | mtk/libshims/Android.mk | 1 | ||||
| -rw-r--r-- | mtk/libshims/agps/crypto.c | 11 | ||||
| -rw-r--r-- | mtk/libshims/agps/ssl.c | 13 |
3 files changed, 12 insertions, 13 deletions
diff --git a/mtk/libshims/Android.mk b/mtk/libshims/Android.mk index 7843768..81b898a 100644 --- a/mtk/libshims/Android.mk +++ b/mtk/libshims/Android.mk @@ -4,6 +4,7 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ + agps/crypto.c \ agps/icu53.c \ agps/ssl.c diff --git a/mtk/libshims/agps/crypto.c b/mtk/libshims/agps/crypto.c new file mode 100644 index 0000000..6bcec3a --- /dev/null +++ b/mtk/libshims/agps/crypto.c @@ -0,0 +1,11 @@ +#include <malloc.h> + +void CRYPTO_free(void *str) { + free(str); +} + +void *CRYPTO_malloc(int num, const char *file, int line) { + return malloc(num); +} + +void CRYPTO_lock(int mode, int type, const char *file, int line) {} diff --git a/mtk/libshims/agps/ssl.c b/mtk/libshims/agps/ssl.c index 894c51e..01f7430 100644 --- a/mtk/libshims/agps/ssl.c +++ b/mtk/libshims/agps/ssl.c @@ -12,16 +12,3 @@ long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) { ALOGD("SSL_CTX_ctrl: ctx=%p cmd=%d larg=%ld parg=%p", ctx, cmd, larg, parg); return -1; } - -void CRYPTO_free(void *str) { - free(str); -} - -void *CRYPTO_malloc(int num, const char *file, int line) { - ALOGD("CRYPTO_malloc: num=%d file=%s line=%d", num, file, line); - return malloc(num); -} - -void CRYPTO_lock(int mode, int type, const char *file, int line) { - ALOGD("CRYPTO_lock: mode=%d type=%d file=%s line=%d", mode, type, file, line); -} |
