mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-09 00:14:59 +00:00
fix comments and time_t type issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
a0446a0344
commit
08aed4def9
4 changed files with 11 additions and 4 deletions
|
|
@ -843,6 +843,11 @@
|
|||
#error "MBEDTLS_SSL_TICKET_C defined, but not all prerequisites"
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_TICKET_NONCE_LENGTH) && \
|
||||
MBEDTLS_SSL_TICKET_NONCE_LENGTH >= 256
|
||||
#error "MBEDTLS_SSL_TICKET_NONCE_LENGTH must be less than 256"
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION) && \
|
||||
!defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||
#error "MBEDTLS_SSL_SERVER_NAME_INDICATION defined, but not all prerequisites"
|
||||
|
|
|
|||
|
|
@ -1546,7 +1546,7 @@
|
|||
*
|
||||
* Size in bytes of a ticket nonce. This is not used in TLS 1.2.
|
||||
*
|
||||
* This must be smaller or equal to 255.
|
||||
* This must be less than 256.
|
||||
*/
|
||||
#define MBEDTLS_SSL_TICKET_NONCE_LENGTH 32
|
||||
|
||||
|
|
|
|||
|
|
@ -1185,7 +1185,7 @@ struct mbedtls_ssl_session
|
|||
#endif /* MBEDTLS_SHA256_C */
|
||||
|
||||
#if defined(MBEDTLS_HAVE_TIME) && defined(MBEDTLS_SSL_CLI_C)
|
||||
time_t MBEDTLS_PRIVATE(ticket_received); /*!< time ticket was received */
|
||||
mbedtls_time_t MBEDTLS_PRIVATE(ticket_received); /*!< time ticket was received */
|
||||
#endif /* MBEDTLS_HAVE_TIME && MBEDTLS_SSL_CLI_C */
|
||||
|
||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 && MBEDTLS_SSL_SESSION_TICKETS */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue