tls: introduce FEATURE_TLS_SHA1 to make SHA1 code optional
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 10 Dec 2018 15:14:58 +0000 (16:14 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 10 Dec 2018 15:14:58 +0000 (16:14 +0100)
commit71fa5b0a4c3cce55460de2f6d49e3a4a63f1b933
treeb3fd3e6b7ab5315852d9530f2e930159ea860852
parentdafbc2cdb8825ed36a25f9a6275d5226f35d3bd3
tls: introduce FEATURE_TLS_SHA1 to make SHA1 code optional

When disabled:

function                                             old     new   delta
xwrite_encrypted                                     580     579      -1
prf_hmac_sha256                                      222     217      -5
hmac_begin                                           158     149      -9
static.ciphers                                        32      20     -12
tls_handshake                                       2115    2095     -20
hmac                                                  87      61     -26
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-73)             Total: -73 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/Config.src
networking/tls.c