Allow to forward declare of public structs #1215

Thanks to forward declare we can declare `struct` in our header file instead making #include
This commit is contained in:
Dawid Drozd 2018-07-24 10:02:47 +02:00
parent 7d728bd70e
commit 428cc52a73
42 changed files with 60 additions and 52 deletions

View file

@ -44,7 +44,7 @@ extern "C" {
/**
* \brief Information for session ticket protection
*/
typedef struct
typedef struct mbedtls_ssl_ticket_key
{
unsigned char name[4]; /*!< random key identifier */
uint32_t generation_time; /*!< key generation timestamp (seconds) */
@ -55,7 +55,7 @@ mbedtls_ssl_ticket_key;
/**
* \brief Context for session ticket handling functions
*/
typedef struct
typedef struct mbedtls_ssl_ticket_context
{
mbedtls_ssl_ticket_key keys[2]; /*!< ticket protection keys */
unsigned char active; /*!< index of the currently active key */