Skip to content

Conversation

peterpme
Copy link
Contributor

@peterpme peterpme commented Apr 16, 2025

Bumps OpenSSL to the same version quick-crypto has. Not sure if this is possible yet to be honest but wanted to get the ball rolling.

Fixes issue when using both libraries.

Thanks!

❯ nm -D node_modules/react-native-quick-crypto/../libcrypto.so | rg BN_CTX_new
000000000026a3b0 T BN_CTX_new@@OPENSSL_3.0.0
000000000026a36c T BN_CTX_new_ex@@OPENSSL_3.0.0

❯ nm -D node_modules/react-native-bignumber/../libcrypto.so | rg BN_CTX_new
00000000000aeac0 T BN_CTX_new@@OPENSSL_1_1_0

Comment on lines -128 to +129
// https://mvnrepository.com/artifact/com.android.ndk.thirdparty/openssl
implementation 'com.android.ndk.thirdparty:openssl:1.1.1l-beta-1'
// Add a dependency on OpenSSL
implementation "io.github.ronickg:openssl:3.3.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterpme why are you switching up from com.android.ndk.thirdparty to io.github.ronickg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because you did :) I copied it directly from quick-crypto to solve the duplicate symbols stuff

https://github.com/margelo/react-native-quick-crypto/pull/559/files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooh, cc @boorad

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

margelo/react-native-quick-crypto#351

ndk doesn't publish OpenSSL >= 3.

Copy link
Member

@renanmav renanmav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually tested the Android example app on the branch peter/bumps-open-ssl-to-3.3.2, looks good to me.

image

Will publish a new release soon.

@renanmav renanmav merged commit 8917085 into margelo:main May 13, 2025
1 of 4 checks passed
@renanmav
Copy link
Member

@peterpme
Copy link
Contributor Author

Amazing, thank you @renanmav !!

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.

3 participants