-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Fix HTTPS downloads using curl #2460
Conversation
f9ed83e
to
c8b7537
Compare
…verifypeer" and "followlocation"
d3cfea2
to
83050c1
Compare
83050c1
to
2e8929e
Compare
@JonasVautherin It works!
|
Awesome! I just need to fix the iOS/macOS build with the updated gRPC now! |
e81ff8b
to
93e0d54
Compare
93e0d54
to
7f76824
Compare
Hmm with the latest version of gRPC I had to update protobuf, which means that I need to re-generate the code... I don't know how I feel about that. Trying with an older version of gRPC, see if that works. The PR for v3 does update protobuf, though: #2460 |
7f76824
to
9b90fc5
Compare
This is because openssl3 does not support the system certificates on Android and does not seem to plan to support them.
9b90fc5
to
0ba884c
Compare
0ba884c
to
7305fa1
Compare
Quality Gate passedIssues Measures |
Closing this as I opted for simple hack for v2: #2471 |
Resolves mavlink/MAVSDK-Java#192.
In a previous PR, we have built curl with ssl support. But that is not enough for Android. First, curl does not auto-detect the system certificates on Android (at least not on all versions of Android). Second, OpenSSL3 cannot parse the Android system certificates (again at least on the versions of Android we tested) and it does not seem like this will change. BoringSSL, on the other hand, works with the Android system certificates.
I don't think that we should move MAVSDK entirely to BoringSSL for different reasons, one of them being that the default ssl library on many systems is OpenSSL. However, if OpenSSL3 does not really support Android, it seems like it makes sense to move to BoringSSL. Just for Android.
@julianoes: In order for boringssl to build, I had to update grpc, which in turn forced me to update protobuf, and hence to regenerate the code 🙈
@rayw-dronesense: would you mind testing this on your setup? 🙏