Changeset 37523


Ignore:
Timestamp:
2013-07-24T14:37:55+02:00 (5 years ago)
Author:
nbd
Message:

openssl: add elliptic curve crypto compilation options to openssl

This patch adds EC compilation options to openssl
OPENSSL_WITH_EC is needed for authsae (OPENSSL_WITH_EC2M isn't)
Activating ec (but not ec2m) in openssl take 35Ko more on ar71xx (ipk size)
Activating both take 52Ko.

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@…>

Location:
trunk/package/libs/openssl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/libs/openssl/Config.in

    r36351 r37523  
    11menu "Configuration" 
    22        depends on PACKAGE_libopenssl 
     3 
     4config OPENSSL_WITH_EC 
     5        bool 
     6        prompt "Enable elliptic curve support" 
     7 
     8config OPENSSL_WITH_EC2M 
     9        bool 
     10        depends on OPENSSL_WITH_EC 
     11        prompt "Enable ec2m support" 
    312 
    413config OPENSSL_ENGINE_CRYPTO 
  • trunk/package/libs/openssl/Makefile

    r36602 r37523  
    1010PKG_NAME:=openssl 
    1111PKG_VERSION:=1.0.1e 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    2121PKG_LICENSE_FILES:=LICENSE 
    2222PKG_BUILD_DEPENDS:=ocf-crypto-headers 
    23 PKG_CONFIG_DEPENDS:=CONFIG_OPENSSL_ENGINE_CRYPTO CONFIG_OPENSSL_ENGINE_DIGEST 
     23PKG_CONFIG_DEPENDS:=CONFIG_OPENSSL_ENGINE_CRYPTO CONFIG_OPENSSL_ENGINE_DIGEST \ 
     24        OPENSSL_WITH_EC OPENSSL_WITH_EC2M 
    2425 
    2526include $(INCLUDE_DIR)/package.mk 
     
    7677OPENSSL_NO_CIPHERS:= no-idea no-md2 no-mdc2 no-rc5 no-sha0 no-smime \ 
    7778        no-rmd160 no-aes192 no-ripemd no-camellia no-ans1 no-krb5 
    78 OPENSSL_OPTIONS:= shared no-ec no-err no-hw no-threads zlib-dynamic no-sse2 
     79OPENSSL_OPTIONS:= shared no-err no-hw no-threads zlib-dynamic no-sse2 
    7980 
    8081ifdef CONFIG_OPENSSL_ENGINE_CRYPTO 
     
    8586else 
    8687  OPENSSL_OPTIONS += no-engines 
     88endif 
     89 
     90ifndef CONFIG_OPENSSL_WITH_EC 
     91  OPENSSL_OPTIONS += no-ec 
     92endif 
     93 
     94ifndef CONFIG_OPENSSL_WITH_EC2M 
     95  OPENSSL_OPTIONS += no-ec2m 
    8796endif 
    8897 
Note: See TracChangeset for help on using the changeset viewer.