mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
New menu option to minimize BSSL ROM with only RSA (#6006)
* New menu option to minimize BSSL ROM with only RSA Adds a menu option and define to limit BearSSL to older RSA connection options. This saves ~45K program memory and can speed up connections since EC, while more secure, is significantly slower on the chip. The supported ciphers are identical to the ones that axTLS supported. Fixes #6005 * Add default SSLFLAGS(blank) to platform.txt * Fix unused variable warning * Add clarifying comment to menu items
This commit is contained in:
committed by
GitHub
parent
72c21feff6
commit
d9b0480f09
@ -1074,6 +1074,15 @@ macros = {
|
||||
( '.menu.wipe.all.upload.erase_cmd', 'erase_flash' ),
|
||||
]),
|
||||
|
||||
######################## SSL supported protocols
|
||||
|
||||
'ssl_cipher_menu': collections.OrderedDict([
|
||||
( '.menu.ssl.all', 'All SSL ciphers (most compatible)' ),
|
||||
( '.menu.ssl.all.build.sslflags', ''),
|
||||
( '.menu.ssl.basic', 'Basic SSL ciphers (lower ROM use)' ),
|
||||
( '.menu.ssl.basic.build.sslflags', '-DBEARSSL_SSL_BASIC'),
|
||||
]),
|
||||
|
||||
}
|
||||
|
||||
################################################################
|
||||
@ -1384,6 +1393,7 @@ def all_boards ():
|
||||
print('menu.led=Builtin Led')
|
||||
print('menu.wipe=Erase Flash')
|
||||
print('menu.sdk=Espressif FW')
|
||||
print('menu.ssl=SSL Support')
|
||||
print('')
|
||||
|
||||
for id in boards:
|
||||
@ -1397,7 +1407,7 @@ def all_boards ():
|
||||
print(id + optname + '=' + board['opts'][optname])
|
||||
|
||||
# macros
|
||||
macrolist = [ 'defaults', 'cpufreq_menu', 'vtable_menu', 'exception_menu' ]
|
||||
macrolist = [ 'defaults', 'cpufreq_menu', 'vtable_menu', 'exception_menu', 'ssl_cipher_menu' ]
|
||||
if 'macro' in board:
|
||||
macrolist += board['macro']
|
||||
if lwip == 2:
|
||||
|
Reference in New Issue
Block a user