[OpenWrt-Devel] [PATCH v3 0/7] openssl: tweaks to reduce size

Dirk Feytons dirk.feytons at gmail.com
Fri Jun 10 06:13:47 EDT 2016


This set of patches introduces a couple of config options to leave out stuff
from OpenSSL. Additionally the hardcoded configure options have been extended
to omit some rarely used functionality and algorithms.
I'm not sure about the defaults for the introduced config options so please
take a closer look at them.
In my case with these changes libcrypto shrunk by about 100K and libssl by
about 22K.
Note that I'm introducing two (small) patches to OpenSSL but these have been
sent upstream and will probably be included in the next 1.0.2 release.

v1 -> v2:
- switch around logic for OPENSSL_WITH_COMPRESSION
- enable PSK by default
v2 -> v3:
- add option to disable SRP support

Dirk Feytons (7):
  openssl: add option to omit deprecated APIs
  openssl: add option to disable compression support
  openssl: add option for NPN support
  openssl: add option to disable PSK support
  openssl: remove some unneeded functionality and algorithms
  openssl: add --gc-sections
  openssl: add option to disable SRP support

 package/libs/openssl/Config.in                     |   25 ++++++++++++
 package/libs/openssl/Makefile                      |   41 +++++++++++++++++---
 .../patches/301-fix_no_nextprotoneg_build.patch    |   12 ++++++
 .../openssl/patches/302-fix_no_cmac_build.patch    |   24 ++++++++++++
 4 files changed, 96 insertions(+), 6 deletions(-)
 create mode 100644 package/libs/openssl/patches/301-fix_no_nextprotoneg_build.patch
 create mode 100644 package/libs/openssl/patches/302-fix_no_cmac_build.patch

-- 
1.7.9.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list