Feature/mbedtls (#84)
* try to import mbedtls and build it * add stubs socket class * some boilterplate, read and write function implemented * more boilterplate / current error in handshake because no CA cert is setup * add something so skip ca verification, can ws curl https://google.com ! * cleanup / close implemented * tweak CMakefiles * typo in include * update readme * disable unittests
This commit is contained in:
committed by
GitHub
parent
ba4a9e1586
commit
06cbebe22e
21
third_party/mbedtls/tests/suites/test_suite_error.function
vendored
Normal file
21
third_party/mbedtls/tests/suites/test_suite_error.function
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/* BEGIN_HEADER */
|
||||
#include "mbedtls/error.h"
|
||||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_DEPENDENCIES
|
||||
* depends_on:MBEDTLS_ERROR_C
|
||||
* END_DEPENDENCIES
|
||||
*/
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void error_strerror( int code, char * result_str )
|
||||
{
|
||||
char buf[500];
|
||||
|
||||
memset( buf, 0, sizeof( buf ) );
|
||||
|
||||
mbedtls_strerror( code, buf, 500 );
|
||||
|
||||
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
||||
}
|
||||
/* END_CASE */
|
Reference in New Issue
Block a user