Move some includes to ssl_internal.h

Also removed one from ssl.h and add it in programs where it belongs
parent cd4fcc6c
......@@ -35,22 +35,6 @@
#include "ssl_ciphersuites.h"
#if defined(MBEDTLS_MD5_C)
#include "md5.h"
#endif
#if defined(MBEDTLS_SHA1_C)
#include "sha1.h"
#endif
#if defined(MBEDTLS_SHA256_C)
#include "sha256.h"
#endif
#if defined(MBEDTLS_SHA512_C)
#include "sha512.h"
#endif
#if defined(MBEDTLS_X509_CRT_PARSE_C)
#include "x509_crt.h"
#include "x509_crl.h"
......@@ -68,10 +52,6 @@
#include "zlib.h"
#endif
#if defined(MBEDTLS_SSL_PROTO_DTLS)
#include "timing.h"
#endif
#if defined(MBEDTLS_HAVE_TIME)
#include <time.h>
#endif
......
......@@ -26,6 +26,22 @@
#include "ssl.h"
#if defined(MBEDTLS_MD5_C)
#include "md5.h"
#endif
#if defined(MBEDTLS_SHA1_C)
#include "sha1.h"
#endif
#if defined(MBEDTLS_SHA256_C)
#include "sha256.h"
#endif
#if defined(MBEDTLS_SHA512_C)
#include "sha512.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -59,6 +59,7 @@ int main( void )
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/error.h"
#include "mbedtls/certs.h"
#include "mbedtls/timing.h"
#define SERVER_PORT 4433
#define SERVER_NAME "localhost"
......
......@@ -70,6 +70,7 @@ int main( void )
#include "mbedtls/net.h"
#include "mbedtls/error.h"
#include "mbedtls/debug.h"
#include "mbedtls/timing.h"
#if defined(MBEDTLS_SSL_CACHE_C)
#include "mbedtls/ssl_cache.h"
......
......@@ -56,6 +56,7 @@ int main( void )
#include "mbedtls/x509.h"
#include "mbedtls/error.h"
#include "mbedtls/debug.h"
#include "mbedtls/timing.h"
#include <stdio.h>
#include <stdlib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment