Skip to content
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

Merged
merged 6 commits into from
Jul 12, 2022
Merged

add mbedtls support #64

merged 6 commits into from
Jul 12, 2022

Conversation

bugparty
Copy link
Contributor

No description provided.

@Javernaut
Copy link
Owner

@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?

@bugparty
Copy link
Contributor Author

bugparty commented Jun 20, 2022 via email

@bugparty
Copy link
Contributor Author

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.
besides, mbedtls is an execellent alternative to openssl.

Copy link
Owner

@Javernaut Javernaut left a 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:

  1. 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.
  2. 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

@bugparty
Copy link
Contributor Author

bugparty commented Jul 1, 2022

OK, got it, I was a little bit worried about your safety last week.
have a nice day:)

hanbowen added 2 commits July 11, 2022 22:09
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
@bugparty
Copy link
Contributor Author

Please review,all the requirements are fullfilled

@Javernaut Javernaut merged commit da8bffd into Javernaut:development Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants