mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Save 48 bytes if SSLv3 is not defined
This commit is contained in:
@ -304,6 +304,15 @@
|
||||
+ SSL_PADDING_ADD \
|
||||
)
|
||||
|
||||
/*
|
||||
* Length of the verify data for secure renegotiation
|
||||
*/
|
||||
#if defined(POLARSSL_SSL_PROTO_SSL3)
|
||||
#define SSL_VERIFY_DATA_MAX_LEN 36
|
||||
#else
|
||||
#define SSL_VERIFY_DATA_MAX_LEN 12
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Signaling ciphersuite values (SCSV)
|
||||
*/
|
||||
@ -867,8 +876,8 @@ struct _ssl_context
|
||||
secure renegotiation */
|
||||
#if defined(POLARSSL_SSL_RENEGOTIATION)
|
||||
size_t verify_data_len; /*!< length of verify data stored */
|
||||
char own_verify_data[36]; /*!< previous handshake verify data */
|
||||
char peer_verify_data[36]; /*!< previous handshake verify data */
|
||||
char own_verify_data[SSL_VERIFY_DATA_MAX_LEN]; /*!< previous handshake verify data */
|
||||
char peer_verify_data[SSL_VERIFY_DATA_MAX_LEN]; /*!< previous handshake verify data */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user