Add more workarounds for issues in the rust-openssl port

This imports
https://github.com/sfackler/rust-openssl/commit/5283d7c994541a99bab9b33f809bd662a5aa47a7
from upstream. This patch is necessary to avoid holding back BoringSSL
updates in Android.

This and other patches in this repository are all symptoms of a deeper
problem: Android's rust-openssl port ignored BoringSSL's standard
practice and ignored our OPENSSL_VERSION_NUMBER define. As a result,
rust-openssl targets legacy APIs in BoringSSL by default and we must
regularly work around this.

The patch is already in an upstream rust-openssl release, but this crate
does not appear to have been updated in Android for six months. Import
the patch as a workaround for now.

Test: treehugger
Change-Id: I5e676adb97a32676da9df6140e6354004aa361a2
7 files changed
tree: ab246d1c9038d92b7c03a6288d501bdbfefa56de
  1. .cargo/
  2. examples/
  3. patches/
  4. src/
  5. test/
  6. .cargo_vcs_info.json
  7. Android.bp
  8. build.rs
  9. Cargo.lock
  10. Cargo.toml
  11. Cargo.toml.orig
  12. cargo2android.json
  13. CHANGELOG.md
  14. LICENSE
  15. METADATA
  16. MODULE_LICENSE_APACHE2
  17. OWNERS
  18. README.android
  19. README.md
  20. TEST_MAPPING
README.md

rust-openssl

crates.io

OpenSSL bindings for the Rust programming language.

Documentation.

Release Support

The current supported release of openssl is 0.10 and openssl-sys is 0.9.

New major versions will be published at most once per year. After a new release, the previous major version will be partially supported with bug fixes for 3 months, after which support will be dropped entirely.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed under the terms of both the Apache License, Version 2.0 and the MIT license without any additional terms or conditions.