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

[mono] Add basic OpenSSL support for Android #35893

Merged
merged 1 commit into from
May 6, 2020

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented May 6, 2020

Temp solution to enable System.Security.Cryptography.Native for Android while we figure out how to build/consume it properly.

Steps to enable:

  1. Download and unzip https://maven.google.com/com/android/ndk/thirdparty/openssl/1.1.1g-alpha-1/openssl-1.1.1g-alpha-1.aar
  2. Set these env variables:
export AndroidOpenSslHeaders="/Users/egorbo/prj/openssl-1.1.1g-alpha-1.aar/prefab/modules/ssl/include"
export AndroidOpenSslCryptoLib="/Users/egorbo/prj/openssl-1.1.1g-alpha-1.aar/prefab/modules/crypto/libs/android.x86_64/libcrypto.so"
export AndroidOpenSslLib="/Users/egorbo/prj/openssl-1.1.1g-alpha-1.aar/prefab/modules/ssl/libs/android.x86_64/libssl.so"

(make sure you use the right ABI in the paths, e.g. android.x86_64 for -arch x64 or android.arm64-v8a for -arch arm64)

  1. build repo normally, e.g.
./build.sh -os Android -subset Mono+Libs

I am preparing a PR to update the docs and will include these temp hints.

@ghost
Copy link

ghost commented May 6, 2020

Tagging subscribers to this area: @directhex
Notify danmosemsft if you want to be subscribed.

@akoeplinger akoeplinger merged commit 287a58a into dotnet:master May 6, 2020
@EgorBo EgorBo deleted the android-openssl branch May 25, 2020 11:54
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants