Move the ARRAY_LENGTH definition to common.h
Reuse it in the library and tests. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
1c7a99856f
commit
b22b9778c7
7 changed files with 39 additions and 47 deletions
|
@ -759,8 +759,6 @@ void mbedtls_ssl_print_extensions(const mbedtls_ssl_context *ssl,
|
|||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||
#define ARRAY_LENGTH(a) (sizeof(a) / sizeof(*(a)))
|
||||
|
||||
static const char *ticket_flag_name_table[] =
|
||||
{
|
||||
[0] = "ALLOW_PSK_RESUMPTION",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue