Comments (8)
Is there a plan to add fmemopen for android's bionic libc such as an open bug? If not, I'd open such a bug and I would also make sure that until that bug is closed, we should ship our own fmemopen or use something else on Android.
On the other have you considered replacing it with open_memstream on Android?
As far as strchrnul goes - I think it is fine to add a few helper functions on a per platform basis. Perhaps we can put such stuff in android/util.c or something similar?
from tlsdate.
The public android issue tracker doesn't have any mention of fmemopen, I'll go ahead and submit a bug requesting it's implementation.
open_memstream is also is not provided on Android. However, it exists in the internal libcutils library, however this lib is not accessible to apps.
Could we import it this proposed android/
dir?
from tlsdate.
I'd suggest you create tlsdate/src/platform/foo.{h,c}
and add reasonably licensed code. If you add say, http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/lib/libc/stdio/fmemopen.c - just grab the entire file and #ifdef it into use for Android. That way, we can easily forward port stuff and also, we won't ever use it except on Android when we satisfy the #ifdef check.
from tlsdate.
I'd like to tag 0.0.7 soon - have you managed to build tlsdate for Android?
If possible, I'd appreciate a patch to the INSTALL file that explains how to build it on Android.
from tlsdate.
I've pushed a build fix to my fork you can review. It compiles with 3 warnings that I need to fix eventually.
As for instructions on how build it, it requires a special CC environment that I'm not quite sure how to integrate properly into tlsdate's autotools setup (my auto* foo is severely lacking).
In the tlsdate-android app I'm building you can see how I compile tlsdate by checking out this Makefile. As you can see there is a great herd of env vars that need to be wrangled into place.
Current Android port status: it builds and executes, however for some reason all hostname resolving in openssl is failing. Using ip addresses works, but of course cert verification fails.
from tlsdate.
@abeluck Please send me a pull request? If it builds on Android, I'm happy to merge it even with the warnings.
If possible, send me a second pull request for the Android port - even if it's just a second Makefile entirely like Makefile.android - we can easily keep it building.
from tlsdate.
@ioerror pull request for the build patches submitted.
Will open a second request for the build scripts.
from tlsdate.
Awesome - I've merged them both.
from tlsdate.
Related Issues (20)
- Long options with arguments don't accept arguments HOT 1
- Test for BIG/LITTLE ENDIAN in test-bio.c
- Time
- minor building issues on debian testing HOT 2
- Sandboxing on other platforms HOT 1
- Tlsdate has no installation candidate HOT 2
- Make tlsdate read proxy environment variables if present
- tlsdate fails to build with openssl-1.1 (new API) HOT 1
- TLS 1.3
- tlsdate-0.0.13 fails to compile with libressl-2.5.0 HOT 1
- Help: How can I disable automatic start of tlsdated? HOT 3
- How do I embed tlsdate into a C++ application? Is there any sort of "libtlsdate"?
- Why times are all different? Only "google.com" returns accurate time! HOT 2
- By default tlsdate uses the non-standard 'nogroup' group
- [EXPIRED] Windows binary
- Last commit 2015, is this project dead? HOT 11
- compile error on raspberrypi HOT 1
- Compile error
- Make error in ubuntu 18.04 HOT 1
- where to find tlsdate servers? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tlsdate.