1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

ssl_test_lib: move initial includes and is-it-supported check

Move from ssl_*2.c to ssl_test_lib.h:
* The inclusion of the config header file (identical).
* The fallback definitions of platform functions (almost identical:
  server2 also had snprintf and the order and whitespace was slightly
  different).
* The compilation guards checking that required options are
  enabled (tweaked to make them common, with MBEDTLS_SSL_{CLI,SRV}_C
  separated out).

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2021-01-05 21:27:53 +01:00
parent 0d980b8be8
commit ab7ce96d7b
4 changed files with 59 additions and 60 deletions

View File

@ -22,3 +22,6 @@
#include "ssl_test_lib.h"
#if !defined(MBEDTLS_SSL_TEST_IMPOSSIBLE)
#endif /* !defined(MBEDTLS_SSL_TEST_IMPOSSIBLE) */