Fix whitespace, missing const

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2022-08-11 16:04:13 +01:00
parent 5f3f0d06e6
commit e2b772d1b6
2 changed files with 3 additions and 2 deletions

View file

@ -304,7 +304,7 @@ int mbedtls_x509write_crt_set_ext_key_usage( mbedtls_x509write_cert *ctx,
int ret;
size_t len = 0;
const mbedtls_asn1_sequence *last_ext = NULL;
mbedtls_asn1_sequence *ext;
const mbedtls_asn1_sequence *ext;
memset( buf, 0, sizeof(buf) );

View file

@ -357,7 +357,8 @@ void x509_crt_check( char *subject_key_file, char *subject_pwd,
x.len = MBEDTLS_OID_SIZE(oid); \
x.p = (unsigned char*)oid; \
x.tag = MBEDTLS_ASN1_OID; \
} while( 0 )
} \
while( 0 )
if( strcmp( ext_key_usage, "serverAuth" ) == 0 )
{