1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-11 09:22:05 +08:00

Fix some style issues and comment typos

This commit is contained in:
Manuel Pégourié-Gonnard 2017-10-18 14:20:24 +02:00
parent d23bc1b2cf
commit 08eacecc62
2 changed files with 5 additions and 5 deletions

View File

@ -286,7 +286,7 @@ int mbedtls_x509_crt_verify_info( char *buf, size_t size, const char *prefix,
* used to sign the certificate, CRL verification is skipped * used to sign the certificate, CRL verification is skipped
* silently, that is *without* setting any flag. * silently, that is *without* setting any flag.
* *
* \note The \c trust_ca list can contain two type of certificates: * \note The \c trust_ca list can contain two types of certificates:
* (1) those of trusted root CAs, so that certificates * (1) those of trusted root CAs, so that certificates
* chaining up to those CAs will be trusted, and (2) * chaining up to those CAs will be trusted, and (2)
* self-signed end-entity certificates to be trusted (for * self-signed end-entity certificates to be trusted (for

View File

@ -1645,7 +1645,7 @@ int mbedtls_x509_crt_is_revoked( const mbedtls_x509_crt *crt, const mbedtls_x509
/* /*
* Check that the given certificate is not revoked according to the CRL. * Check that the given certificate is not revoked according to the CRL.
* Skip validation is no CRL for the given CA is present. * Skip validation if no CRL for the given CA is present.
*/ */
static int x509_crt_verifycrl( mbedtls_x509_crt *crt, mbedtls_x509_crt *ca, static int x509_crt_verifycrl( mbedtls_x509_crt *crt, mbedtls_x509_crt *ca,
mbedtls_x509_crl *crl_list, mbedtls_x509_crl *crl_list,
@ -1994,7 +1994,7 @@ static mbedtls_x509_crt *x509_crt_find_parent_in( mbedtls_x509_crt *child,
if( parent == NULL ) if( parent == NULL )
parent = badtime_parent; parent = badtime_parent;
return parent; return( parent );
} }
/* /*
@ -2016,7 +2016,7 @@ static mbedtls_x509_crt *x509_crt_find_parent( mbedtls_x509_crt *child,
parent = x509_crt_find_parent_in( child, trust_ca, 1, path_cnt, self_cnt ); parent = x509_crt_find_parent_in( child, trust_ca, 1, path_cnt, self_cnt );
if( parent != NULL ) if( parent != NULL )
return parent; return( parent );
/* Look for a parent upwards the chain */ /* Look for a parent upwards the chain */
*parent_is_trusted = 0; *parent_is_trusted = 0;
@ -2228,7 +2228,7 @@ static void x509_crt_verify_name( const mbedtls_x509_crt *crt,
} }
else else
{ {
for( name = &crt->subject; name != NULL; name = name->next ) for( name = &crt->subject; name != NULL; name = name->next )
{ {
if( MBEDTLS_OID_CMP( MBEDTLS_OID_AT_CN, &name->oid ) == 0 && if( MBEDTLS_OID_CMP( MBEDTLS_OID_AT_CN, &name->oid ) == 0 &&
x509_crt_check_cn( &name->val, cn, cn_len ) == 0 ) x509_crt_check_cn( &name->val, cn, cn_len ) == 0 )