Skip to content

Commit 5f4a34b

Browse files
committed
Fix formatting
1 parent b416b01 commit 5f4a34b

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

demos/fleet_provisioning/fleet_provisioning_keys_cert/pkcs11_operations.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ static CK_RV provisionPrivateKey( CK_SESSION_HANDLE session,
541541
mbedtls_entropy_context entropy;
542542

543543
mbedtls_pk_init( &mbedPkContext );
544-
mbedtls_entropy_init(&entropy);
545-
mbedtls_ctr_drbg_init(&ctr_drbg);
546-
mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0);
544+
mbedtls_entropy_init( &entropy );
545+
mbedtls_ctr_drbg_init( &ctr_drbg );
546+
mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0 );
547547
mbedResult = mbedtls_pk_parse_key( &mbedPkContext, ( const uint8_t * ) privateKey,
548548
privateKeyLength, NULL, 0, mbedtls_ctr_drbg_random, &ctr_drbg );
549549

demos/fleet_provisioning/fleet_provisioning_keys_cert/pkcs11_operations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* @brief To access the private members of the MbedTLS structs
3232
*/
33-
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
33+
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
3434

3535
/* corePKCS11 include. */
3636
#include "core_pkcs11.h"

demos/fleet_provisioning/fleet_provisioning_with_csr/pkcs11_operations.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,9 @@ static CK_RV provisionPrivateKey( CK_SESSION_HANDLE session,
641641
mbedtls_entropy_context entropy;
642642

643643
mbedtls_pk_init( &mbedPkContext );
644-
mbedtls_entropy_init(&entropy);
645-
mbedtls_ctr_drbg_init(&ctr_drbg);
646-
mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0);
644+
mbedtls_entropy_init( &entropy );
645+
mbedtls_ctr_drbg_init( &ctr_drbg );
646+
mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0 );
647647
mbedResult = mbedtls_pk_parse_key( &mbedPkContext, ( const uint8_t * ) privateKey,
648648
privateKeyLength, NULL, 0, mbedtls_ctr_drbg_random, &ctr_drbg );
649649

@@ -916,7 +916,7 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
916916
int ( * pRng )( void *, unsigned char *, size_t ),
917917
void * pRngContext )
918918
{
919-
(void) sig_size;
919+
( void ) sig_size;
920920
CK_RV ret = CKR_OK;
921921
int32_t result = 0;
922922
CK_MECHANISM mech = { 0 };

demos/fleet_provisioning/fleet_provisioning_with_csr/pkcs11_operations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* @brief To access the private members of the MbedTLS structs
3232
*/
33-
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
33+
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
3434

3535
/* corePKCS11 include. */
3636
#include "core_pkcs11.h"

platform/posix/transport/include/mbedtls_pkcs11_posix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
/**
7070
* @brief To access the private members of the MbedTLS structs
7171
*/
72-
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
72+
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
7373

7474
/* MbedTLS includes. */
7575
#include "mbedtls/net_sockets.h"

platform/posix/transport/src/mbedtls_pkcs11_posix.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
208208
const unsigned char * pHash,
209209
size_t hashLen,
210210
unsigned char * pSig,
211-
size_t sig_size,
211+
size_t sig_size,
212212
size_t * pSigLen,
213213
int32_t ( * pRng )( void *, unsigned char *, size_t ),
214214
void * pRngContext );
@@ -475,7 +475,6 @@ static MbedtlsPkcs11Status_t configureMbedtlsFragmentLength( MbedtlsPkcs11Contex
475475

476476
/* Set Maximum Fragment Length if enabled. */
477477
#ifdef MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
478-
479478
/* Enable the max fragment extension. 4096 bytes is currently the largest fragment size permitted.
480479
* See RFC 6066 https://tools.ietf.org/html/rfc6066#page-8 for more information.
481480
*
@@ -675,7 +674,7 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
675674
size_t ),
676675
void * pRngContext )
677676
{
678-
(void) sig_size;
677+
( void ) sig_size;
679678
CK_RV ret = CKR_OK;
680679
int32_t result = 0;
681680
MbedtlsPkcs11Context_t * pMbedtlsPkcs11Context = ( MbedtlsPkcs11Context_t * ) pContext->pk_ctx;

0 commit comments

Comments
 (0)