Rename _wrap headers to _internal

Makes it clearer that the user is not supposed to include them
This commit is contained in:
Manuel Pégourié-Gonnard 2015-05-26 11:04:15 +02:00
parent 866eb471da
commit 50518f4195
11 changed files with 15 additions and 13 deletions

View File

@ -97,13 +97,15 @@ New deprecations
argument (allowing memory savings if HMAC is not used)
Semi-API changes (technically public, morally private)
* Renamed a few headers to include _internal in the name. Those headers are
not supposed to be included by users.
* Changed md_info_t into an opaque structure (use md_get_xxx() accessors).
* Changed pk_info_t into an opaque structure.
* Change cipher_base_t into an opaque structure.
* Remove sig_oid2 and rename sig_oid1 to sig_oid in x509_crt and x509_crl.
* Changed cipher_base_t into an opaque structure.
* Removed sig_oid2 and rename sig_oid1 to sig_oid in x509_crt and x509_crl.
* x509_crt.key_usage changed from unsigned char to unsigned int.
* Remove r and s from ecdsa_context
* Remove mode from des_context and des3_context
* Removed r and s from ecdsa_context
* Removed mode from des_context and des3_context
Default behavior changes
* The default minimum TLS version is now TLS 1.0.

View File

@ -1,5 +1,5 @@
/**
* \file cipher_wrap.h
* \file cipher_internal.h
*
* \brief Cipher wrappers.
*

View File

@ -65,7 +65,7 @@ typedef enum {
#endif
/**
* Opaque struct defined in md_wrap.h
* Opaque struct defined in md_internal.h
*/
typedef struct mbedtls_md_info_t mbedtls_md_info_t;

View File

@ -1,5 +1,5 @@
/**
* \file md_wrap.h
* \file md_internal.h
*
* \brief Message digest wrappers.
*

View File

@ -33,7 +33,7 @@
#if defined(MBEDTLS_CIPHER_C)
#include "mbedtls/cipher.h"
#include "mbedtls/cipher_wrap.h"
#include "mbedtls/cipher_internal.h"
#include <stdlib.h>
#include <string.h>

View File

@ -32,7 +32,7 @@
#if defined(MBEDTLS_CIPHER_C)
#include "mbedtls/cipher_wrap.h"
#include "mbedtls/cipher_internal.h"
#if defined(MBEDTLS_AES_C)
#include "mbedtls/aes.h"

View File

@ -33,7 +33,7 @@
#if defined(MBEDTLS_MD_C)
#include "mbedtls/md.h"
#include "mbedtls/md_wrap.h"
#include "mbedtls/md_internal.h"
#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"

View File

@ -32,7 +32,7 @@
#if defined(MBEDTLS_MD_C)
#include "mbedtls/md_wrap.h"
#include "mbedtls/md_internal.h"
#if defined(MBEDTLS_MD2_C)
#include "mbedtls/md2.h"

View File

@ -28,7 +28,7 @@
#if defined(MBEDTLS_PK_C)
#include "mbedtls/pk.h"
#include "mbedtls/pk_wrap.h"
#include "mbedtls/pk_internal.h"
#if defined(MBEDTLS_RSA_C)
#include "mbedtls/rsa.h"

View File

@ -27,7 +27,7 @@
#endif
#if defined(MBEDTLS_PK_C)
#include "mbedtls/pk_wrap.h"
#include "mbedtls/pk_internal.h"
/* Even if RSA not activated, for the sake of RSA-alt */
#include "mbedtls/rsa.h"