mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-23 01:52:40 +03:00
Fix code style issues
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
@@ -1663,25 +1663,25 @@ cleanup:
|
|||||||
|
|
||||||
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
#if !defined(MBEDTLS_X509_REMOVE_INFO)
|
||||||
#define PRINT_ITEM(i) \
|
#define PRINT_ITEM(i) \
|
||||||
do { \
|
do { \
|
||||||
ret = mbedtls_snprintf(p, n, "%s" i, sep); \
|
ret = mbedtls_snprintf(p, n, "%s" i, sep); \
|
||||||
MBEDTLS_X509_SAFE_SNPRINTF; \
|
MBEDTLS_X509_SAFE_SNPRINTF; \
|
||||||
sep = ", "; \
|
sep = ", "; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define CERT_TYPE(type, name) \
|
#define CERT_TYPE(type, name) \
|
||||||
do { \
|
do { \
|
||||||
if (ns_cert_type & (type)) { \
|
if (ns_cert_type & (type)) { \
|
||||||
PRINT_ITEM(name); \
|
PRINT_ITEM(name); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define KEY_USAGE(code, name) \
|
#define KEY_USAGE(code, name) \
|
||||||
do { \
|
do { \
|
||||||
if (key_usage & (code)) { \
|
if (key_usage & (code)) { \
|
||||||
PRINT_ITEM(name); \
|
PRINT_ITEM(name); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static int x509_info_ext_key_usage(char **buf, size_t *size,
|
static int x509_info_ext_key_usage(char **buf, size_t *size,
|
||||||
const mbedtls_x509_sequence *extended_key_usage)
|
const mbedtls_x509_sequence *extended_key_usage)
|
||||||
|
Reference in New Issue
Block a user