-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add mbedtls support #64
Conversation
@bugparty Why have you picked exactly the mbedtls? I see there are 4 possible libraries for https enabling:
What is your reasoning? |
mbedtls is the easiest one to build, gnutls and openssl is not easy to
compile in android.
Oleksandr Berezhnyi ***@***.***> 于2022年6月20日周一 19:41写道:
… @bugparty <https://github.com/bugparty> Why have you picked exactly the
mbedtls? I see there are 4 possible libraries for https enabling:
- libtls
- openssl
- gnutls
- mbedtls
What is your reasoning?
—
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALQ26GT4GYT4YQOFVXTQ3LVQBKGHANCNFSM5ZH7UWHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
openssl and gnutls is not using autoconf, instead they use custom build scripts, I can not make them easily, but mbedtls uses cmake, this project has cmake template so it is easy to build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. Too many things to do for the main job.
I'd like to ask you to fix a couple of things:
- No need to add a separate android.cmake file like this. The NDK’s android.toolchain.cmake file already enables the usage of NEON in case of building for armeabi-v7a. So please use android.toolchain.cmake file directly. I used a separate android.cmake for libaom because its cmake configuration wasn't fully compatible with NDK's cmake script.
- I don't like the way
--enable-protocol=https --enable-version3
flags are added to ffmpeg. I would ask you to:
- Remove FFMPEG_MBEDTLS_ENABLED variable completely
- Refactor EXTRA_BUILD_CONFIGURATION_FLAGS variable to be available for all libraries for a given ABI (just as FFMPEG_EXTRA_LD_FLAGS)
- Append the EXTRA_BUILD_CONFIGURATION_FLAGS with
--enable-protocol=https --enable-version3
in mbedtls/build.sh
OK, got it, I was a little bit worried about your safety last week. |
Refactor EXTRA_BUILD_CONFIGURATION_FLAGS variable to be available for all libraries for a given ABI(just as FFMPEG_EXTRA_LD_FLAGS Append the EXTRA_BUILD_CONFIGURATION_FLAGS with --enable-protocol=https --enable-version in mbedtls/build.sh
Please review,all the requirements are fullfilled |
No description provided.