mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Fix minor compile errors
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
abdb0df91d
commit
ec9f6b4de1
@ -816,7 +816,7 @@ int main( int argc, char *argv[] )
|
|||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_strerror( ret, buf, 1024 );
|
mbedtls_strerror( ret, buf, 1024 );
|
||||||
mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_ext_key_usage returned -0x%02x - %s\n\n", -ret, buf );
|
mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_ext_key_usage returned -0x%02x - %s\n\n", (unsigned int) -ret, buf );
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -349,7 +349,8 @@ void x509_crt_check( char *subject_key_file, char *subject_pwd,
|
|||||||
TEST_ASSERT( mbedtls_x509write_crt_set_ns_cert_type( &crt, cert_type ) == 0 );
|
TEST_ASSERT( mbedtls_x509write_crt_set_ns_cert_type( &crt, cert_type ) == 0 );
|
||||||
if( strcmp( ext_key_usage, "NULL" ) != 0 )
|
if( strcmp( ext_key_usage, "NULL" ) != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_asn1_sequence exts[2] = { };
|
mbedtls_asn1_sequence exts[2];
|
||||||
|
memset(exts, 0, sizeof(exts));
|
||||||
#define SET_OID(x, oid) \
|
#define SET_OID(x, oid) \
|
||||||
do { x.len = MBEDTLS_OID_SIZE(oid); x.p = (unsigned char*)oid; \
|
do { x.len = MBEDTLS_OID_SIZE(oid); x.p = (unsigned char*)oid; \
|
||||||
x.tag = MBEDTLS_ASN1_OID; } while( 0 )
|
x.tag = MBEDTLS_ASN1_OID; } while( 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user