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

@ -235,7 +235,8 @@ typedef struct mbedtls_cmac_context_t mbedtls_cmac_context_t;
* Cipher information. Allows calling cipher functions
* in a generic way.
*/
typedef struct {
typedef struct mbedtls_cipher_info_t
{
/** Full cipher identifier. For example,
* MBEDTLS_CIPHER_AES_256_CBC.
*/
@ -276,7 +277,8 @@ typedef struct {
/**
* Generic cipher context.
*/
typedef struct {
typedef struct mbedtls_cipher_context_t
{
/** Information about the associated cipher. */
const mbedtls_cipher_info_t *cipher_info;