mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-25 09:02:48 +00:00
Fix Uncrustify errors in modified tests/suites to satisfy check_code_style test
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
275b698ee7
commit
6a3573a1dd
@ -1,7 +1,11 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
static void fill_arrays(unsigned char *a, unsigned char *b, unsigned char *r1, unsigned char *r2, size_t n)
|
static void fill_arrays(unsigned char *a,
|
||||||
|
unsigned char *b,
|
||||||
|
unsigned char *r1,
|
||||||
|
unsigned char *r2,
|
||||||
|
size_t n)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < n; i++) {
|
for (size_t i = 0; i < n; i++) {
|
||||||
a[i] = (unsigned char) i * 3;
|
a[i] = (unsigned char) i * 3;
|
||||||
|
@ -85,7 +85,8 @@ static int verify_all(void *data, mbedtls_x509_crt *crt, int certificate_depth,
|
|||||||
|
|
||||||
#if defined(MBEDTLS_X509_CRL_PARSE_C) && \
|
#if defined(MBEDTLS_X509_CRL_PARSE_C) && \
|
||||||
defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
|
defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
|
||||||
static int ca_callback_fail(void *data, mbedtls_x509_crt const *child, mbedtls_x509_crt **candidates)
|
static int ca_callback_fail(void *data, mbedtls_x509_crt const *child,
|
||||||
|
mbedtls_x509_crt **candidates)
|
||||||
{
|
{
|
||||||
((void) data);
|
((void) data);
|
||||||
((void) child);
|
((void) child);
|
||||||
@ -421,8 +422,12 @@ static int parse_crt_ext_cb(void *p_ctx, mbedtls_x509_crt const *crt, mbedtls_x5
|
|||||||
|
|
||||||
#if defined(MBEDTLS_X509_CSR_PARSE_C) && \
|
#if defined(MBEDTLS_X509_CSR_PARSE_C) && \
|
||||||
!defined(MBEDTLS_X509_REMOVE_INFO)
|
!defined(MBEDTLS_X509_REMOVE_INFO)
|
||||||
static int parse_csr_ext_accept_cb(void *p_ctx, mbedtls_x509_csr const *csr, mbedtls_x509_buf const *oid,
|
static int parse_csr_ext_accept_cb(void *p_ctx,
|
||||||
int critical, const unsigned char *cp, const unsigned char *end)
|
mbedtls_x509_csr const *csr,
|
||||||
|
mbedtls_x509_buf const *oid,
|
||||||
|
int critical,
|
||||||
|
const unsigned char *cp,
|
||||||
|
const unsigned char *end)
|
||||||
{
|
{
|
||||||
(void) p_ctx;
|
(void) p_ctx;
|
||||||
(void) csr;
|
(void) csr;
|
||||||
@ -434,8 +439,12 @@ static int parse_csr_ext_accept_cb(void *p_ctx, mbedtls_x509_csr const *csr, mbe
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int parse_csr_ext_reject_cb(void *p_ctx, mbedtls_x509_csr const *csr, mbedtls_x509_buf const *oid,
|
static int parse_csr_ext_reject_cb(void *p_ctx,
|
||||||
int critical, const unsigned char *cp, const unsigned char *end)
|
mbedtls_x509_csr const *csr,
|
||||||
|
mbedtls_x509_buf const *oid,
|
||||||
|
int critical,
|
||||||
|
const unsigned char *cp,
|
||||||
|
const unsigned char *end)
|
||||||
{
|
{
|
||||||
(void) p_ctx;
|
(void) p_ctx;
|
||||||
(void) csr;
|
(void) csr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user