mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
code formating changes based on PR review.
This commit is contained in:
@@ -527,7 +527,6 @@ int atmel_init(void)
|
|||||||
#else
|
#else
|
||||||
cfg_ateccx08a_i2c_pi.atcai2c.address = ATECC_I2C_ADDR;
|
cfg_ateccx08a_i2c_pi.atcai2c.address = ATECC_I2C_ADDR;
|
||||||
#endif
|
#endif
|
||||||
cfg_ateccx08a_i2c_pi.atcai2c.address = ATECC_I2C_ADDR;
|
|
||||||
cfg_ateccx08a_i2c_pi.atcai2c.bus = ATECC_I2C_BUS;
|
cfg_ateccx08a_i2c_pi.atcai2c.bus = ATECC_I2C_BUS;
|
||||||
cfg_ateccx08a_i2c_pi.atcai2c.baud = 400000;
|
cfg_ateccx08a_i2c_pi.atcai2c.baud = 400000;
|
||||||
cfg_ateccx08a_i2c_pi.wake_delay = 1500;
|
cfg_ateccx08a_i2c_pi.wake_delay = 1500;
|
||||||
@@ -973,7 +972,7 @@ static int atcatls_set_certificates(WOLFSSL_CTX *ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Read device cert signed by the signer above */
|
/* Read device cert signed by the signer above */
|
||||||
status = tng_atcacert_read_device_cert(certBuffer, &deviceCertSize,\
|
status = tng_atcacert_read_device_cert(certBuffer, &deviceCertSize,
|
||||||
&certBuffer[deviceCertSize]);
|
&certBuffer[deviceCertSize]);
|
||||||
if (ATCA_SUCCESS != status) {
|
if (ATCA_SUCCESS != status) {
|
||||||
#ifdef WOLFSSL_ATECC_DEBUG
|
#ifdef WOLFSSL_ATECC_DEBUG
|
||||||
@@ -984,8 +983,8 @@ static int atcatls_set_certificates(WOLFSSL_CTX *ctx)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = wolfSSL_CTX_use_certificate_chain_buffer_format(ctx,\
|
ret = wolfSSL_CTX_use_certificate_chain_buffer_format(ctx,
|
||||||
(const unsigned char*)certBuffer, signerCertSize+deviceCertSize,\
|
(const unsigned char*)certBuffer, signerCertSize+deviceCertSize,
|
||||||
WOLFSSL_FILETYPE_ASN1);
|
WOLFSSL_FILETYPE_ASN1);
|
||||||
if (ret != WOLFSSL_SUCCESS) {
|
if (ret != WOLFSSL_SUCCESS) {
|
||||||
printf("Error registering certificate chain\r\n");
|
printf("Error registering certificate chain\r\n");
|
||||||
|
Reference in New Issue
Block a user