mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-06 19:21:05 +00:00
Merge pull request #7835 from gilles-peskine-arm/ssl_premaster_secret-empty-3.4
Fix empty union when TLS is disabled
This commit is contained in:
commit
7ef14bf8a2
3
ChangeLog.d/ssl_premaster_secret-empty.txt
Normal file
3
ChangeLog.d/ssl_premaster_secret-empty.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Bugfix
|
||||||
|
* Fix a compilation error on some platforms when including mbedtls/ssl.h
|
||||||
|
with all TLS support disabled. Fixes #6628.
|
@ -619,6 +619,7 @@
|
|||||||
|
|
||||||
/* Dummy type used only for its size */
|
/* Dummy type used only for its size */
|
||||||
union mbedtls_ssl_premaster_secret {
|
union mbedtls_ssl_premaster_secret {
|
||||||
|
unsigned char dummy; /* Make the union non-empty even with SSL disabled */
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
|
||||||
unsigned char _pms_rsa[48]; /* RFC 5246 8.1.1 */
|
unsigned char _pms_rsa[48]; /* RFC 5246 8.1.1 */
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user