mbed TLS Build

Dependents:   Slave-prot-prod

Committer:
williequesada
Date:
Tue Jun 04 16:03:38 2019 +0000
Revision:
1:1a219dea6cb5
Parent:
0:cdf462088d13
compartir a Pablo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
markrad 0:cdf462088d13 1 /* BEGIN_HEADER */
markrad 0:cdf462088d13 2 #include "mbedtls/error.h"
markrad 0:cdf462088d13 3 /* END_HEADER */
markrad 0:cdf462088d13 4
markrad 0:cdf462088d13 5 /* BEGIN_DEPENDENCIES
markrad 0:cdf462088d13 6 * depends_on:MBEDTLS_ERROR_C
markrad 0:cdf462088d13 7 * END_DEPENDENCIES
markrad 0:cdf462088d13 8 */
markrad 0:cdf462088d13 9
markrad 0:cdf462088d13 10 /* BEGIN_CASE */
markrad 0:cdf462088d13 11 void error_strerror( int code, char *result_str )
markrad 0:cdf462088d13 12 {
markrad 0:cdf462088d13 13 char buf[500];
markrad 0:cdf462088d13 14
markrad 0:cdf462088d13 15 memset( buf, 0, sizeof( buf ) );
markrad 0:cdf462088d13 16
markrad 0:cdf462088d13 17 mbedtls_strerror( code, buf, 500 );
markrad 0:cdf462088d13 18
markrad 0:cdf462088d13 19 TEST_ASSERT( strcmp( buf, result_str ) == 0 );
markrad 0:cdf462088d13 20 }
markrad 0:cdf462088d13 21 /* END_CASE */