mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:15:07 +00:00
Fix indentation for mbedtls_x509_crt_check_key_usage()
This commit is contained in:
parent
c81fcb9d36
commit
5a6da63138
|
@ -373,20 +373,21 @@ int mbedtls_x509_crt_check_key_usage( const mbedtls_x509_crt *crt,
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
|
#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
|
||||||
/**
|
/**
|
||||||
* \brief Check usage of certificate against extendedKeyUsage.
|
* \brief Check usage of certificate against extendedKeyUsage.
|
||||||
*
|
*
|
||||||
* \param crt Leaf certificate used.
|
* \param crt Leaf certificate used.
|
||||||
* \param usage_oid Intended usage (eg MBEDTLS_OID_SERVER_AUTH or MBEDTLS_OID_CLIENT_AUTH).
|
* \param usage_oid Intended usage (eg MBEDTLS_OID_SERVER_AUTH or
|
||||||
|
* MBEDTLS_OID_CLIENT_AUTH).
|
||||||
* \param usage_len Length of usage_oid (eg given by MBEDTLS_OID_SIZE()).
|
* \param usage_len Length of usage_oid (eg given by MBEDTLS_OID_SIZE()).
|
||||||
*
|
*
|
||||||
* \return 0 if this use of the certificate is allowed,
|
* \return 0 if this use of the certificate is allowed,
|
||||||
* MBEDTLS_ERR_X509_BAD_INPUT_DATA if not.
|
* MBEDTLS_ERR_X509_BAD_INPUT_DATA if not.
|
||||||
*
|
*
|
||||||
* \note Usually only makes sense on leaf certificates.
|
* \note Usually only makes sense on leaf certificates.
|
||||||
*/
|
*/
|
||||||
int mbedtls_x509_crt_check_extended_key_usage( const mbedtls_x509_crt *crt,
|
int mbedtls_x509_crt_check_extended_key_usage( const mbedtls_x509_crt *crt,
|
||||||
const char *usage_oid,
|
const char *usage_oid,
|
||||||
size_t usage_len );
|
size_t usage_len );
|
||||||
#endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
|
#endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_CRL_PARSE_C)
|
#if defined(MBEDTLS_X509_CRL_PARSE_C)
|
||||||
|
|
Loading…
Reference in a new issue