Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximalien/curl-android
Script which allows to build curl with OpenSSL support for Android. Test app is included as well.
https://github.com/maximalien/curl-android
android curl jni ndk openssl zlib
Last synced: 3 days ago
JSON representation
Script which allows to build curl with OpenSSL support for Android. Test app is included as well.
- Host: GitHub
- URL: https://github.com/maximalien/curl-android
- Owner: MaximAlien
- Created: 2019-10-24T19:29:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-05T05:31:15.000Z (almost 4 years ago)
- Last Synced: 2024-11-07T18:52:40.394Z (about 2 months ago)
- Topics: android, curl, jni, ndk, openssl, zlib
- Language: C
- Homepage:
- Size: 3.18 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# curl-android
Before running ./build.sh make sure you have all dependencies. At least on my Linux Ubuntu machine I had to install:
$ sudo apt-get install autoconfAlso make sure you have selected correct path to Android NDK.
openssl, crypto and libz libraries can be found in build folder.
curl libraries/includes can be found in build/curl/arm64-v8a folder.To test .so library on Android device (for dynamically linked curl):
```bash
$ cd test-app
$ ndk-build NDK_APPLICATION_MK=./jni/Application.mk
$ cd obj/local/arm64-v8a/
$ adb push test.out /data/local/tmp/
$ adb push libcurl.so /data/local/tmp/
$ adb push libssl.so /data/local/tmp/
$ adb push libcrypto.so /data/local/tmp/
$ adb shell
$ cd /data/local/tmp/
$ export LD_LIBRARY_PATH=.
$ ./test.out
```Example output:
```bash
$ ./test.out
Sending cURL request...
* Trying 172.217.168.228:443...
* TCP_NODELAY set
* Connected to www.google.com (172.217.168.228) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
```