From: Iurii Zaikin <[email protected]> 

The patch enables user to select via menuconfig whether to build openssl with 
ec or without.

Signed-off-by: Iurii Zaikin <[email protected]>

---
Index: package/openssl/Config.in
===================================================================
--- package/openssl/Config.in(revision 33288)
+++ package/openssl/Config.in(working copy)
@@ -10,4 +10,8 @@
 depends OPENSSL_ENGINE_CRYPTO
 prompt "Digests acceleration support"
 
+config OPENSSL_ELLIPTIC_CURVE
+bool
+prompt "Elliptic curve cryptography support"
+
 endmenu
Index: package/openssl/Makefile
===================================================================
--- package/openssl/Makefile(revision 33288)
+++ package/openssl/Makefile(working copy)
@@ -74,8 +74,14 @@
 
 OPENSSL_NO_CIPHERS:= no-idea no-md2 no-mdc2 no-rc5 no-sha0 no-smime \
 no-rmd160 no-aes192 no-ripemd no-camellia no-ans1 no-krb5
-OPENSSL_OPTIONS:= shared no-ec no-err no-hw no-threads zlib-dynamic no-sse2
+OPENSSL_OPTIONS:= shared no-err no-hw no-threads zlib-dynamic no-sse2
 
+ifdef CONFIG_OPENSSL_ELLIPTIC_CURVE
+  OPENSSL_OPTIONS += enable-ec
+else
+  OPENSSL_OPTIONS += no-ec
+endif
+
 ifdef CONFIG_OPENSSL_ENGINE_CRYPTO
   OPENSSL_OPTIONS += -DHAVE_CRYPTODEV
   ifdef CONFIG_OPENSSL_ENGINE_DIGEST

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to