Modifying to support Azure as well as AWS for TLS

This addresses the issue https://github.com/arendst/Tasmota/issues/12031
This commit is contained in:
ksaye 2021-05-08 09:40:00 -05:00 committed by GitHub
parent 17996ce87c
commit 21deb1f42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ uint32_t *stack_thunk_light_save = NULL; /* Saved A1 while in BearSSL */
uint32_t stack_thunk_light_refcnt = 0;
//#define _stackSize (5600/4)
#if defined(USE_MQTT_AWS_IOT)
#if defined(USE_MQTT_AWS_IOT) || defined(USE_MQTT_AZURE_IOT)
#define _stackSize (5300/4) // using a light version of bearssl we can save 300 bytes
#elif defined(USE_MQTT_TLS_FORCE_EC_CIPHER) || defined(USE_4K_RSA)
#define _stackSize (4800/4) // no private key, we can reduce a little, max observed 4300
@ -146,4 +146,4 @@ void stack_thunk_light_fatal_overflow()
};
#endif
#endif