mirror of
https://github.com/openwrt/packages.git
synced 2025-12-28 07:50:04 +04:00
Commit3da874371("libsodium: include ed25519_core in minimal build") broke the build of PyNaCl. Add patch to always include all ed25519 functions which are now always covered even if libsodium is built with the MINIMAL option. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commitccd3b6c0a5)
23 lines
590 B
Diff
23 lines
590 B
Diff
--- a/src/bindings/minimal/crypto_scalarmult.h
|
|
+++ b/src/bindings/minimal/crypto_scalarmult.h
|
|
@@ -13,7 +13,7 @@
|
|
* limitations under the License.
|
|
*/
|
|
|
|
-#ifdef SODIUM_LIBRARY_MINIMAL
|
|
+#if 0
|
|
static const int PYNACL_HAS_CRYPTO_SCALARMULT_ED25519 = 0;
|
|
|
|
size_t (*crypto_scalarmult_ed25519_bytes)() = NULL;
|
|
--- a/src/bindings/minimal/crypto_core.h
|
|
+++ b/src/bindings/minimal/crypto_core.h
|
|
@@ -13,7 +13,7 @@
|
|
* limitations under the License.
|
|
*/
|
|
|
|
-#ifdef SODIUM_LIBRARY_MINIMAL
|
|
+#if 0
|
|
static const int PYNACL_HAS_CRYPTO_CORE_ED25519 = 0;
|
|
|
|
size_t (*crypto_core_ed25519_bytes)() = NULL;
|