Skip to content

Commit 5f80116

Browse files
committed
Compile variants
1 parent 3e1925b commit 5f80116

File tree

130 files changed

+40270
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+40270
-53
lines changed

cores/arduino/mbed/connectivity/netsocket/include/netsocket/TLSSocketWrapper.h

+41
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
#include "mbedtls/hmac_drbg.h"
3333
#include "mbedtls/error.h"
3434

35+
#if defined(COMPONENT_SE050) && defined(MBEDTLS_ECDH_ALT) && SSS_HAVE_ALT_SSS
36+
extern "C" {
37+
#include "sss_mbedtls.h"
38+
}
39+
#include "ex_sss_boot.h"
40+
extern "C" {
41+
#include "ecdsa_verify_alt.h"
42+
}
43+
#endif
44+
3545
// This class requires Mbed TLS SSL/TLS client code
3646
#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY)
3747

@@ -116,6 +126,29 @@ class TLSSocketWrapper : public Socket {
116126
*/
117127
nsapi_error_t set_root_ca_cert(const char *root_ca_pem);
118128

129+
/** Appends the certificate to an existing ca chain.
130+
*
131+
* @note Must be called before calling connect()
132+
*
133+
* @param root_ca Root CA Certificate in any Mbed TLS-supported format.
134+
* @param len Length of certificate (including terminating 0 for PEM).
135+
* @retval NSAPI_ERROR_OK on success.
136+
* @retval NSAPI_ERROR_NO_MEMORY in case there is not enough memory to allocate certificate.
137+
* @retval NSAPI_ERROR_PARAMETER in case the provided root_ca parameter failed parsing.
138+
*/
139+
nsapi_error_t append_root_ca_cert(const void *root_ca, size_t len);
140+
141+
/** Appends the certificate to an existing ca chain.
142+
*
143+
* @note Must be called before calling connect()
144+
*
145+
* @param root_ca_pem Root CA Certificate in PEM format.
146+
* @retval NSAPI_ERROR_OK on success.
147+
* @retval NSAPI_ERROR_NO_MEMORY in case there is not enough memory to allocate certificate.
148+
* @retval NSAPI_ERROR_PARAMETER in case the provided root_ca parameter failed parsing.
149+
*/
150+
nsapi_error_t append_root_ca_cert(const char *root_ca_pem);
151+
119152
/** Sets the certification of Root CA.
120153
*
121154
* @note Must be called before calling connect()
@@ -148,6 +181,9 @@ class TLSSocketWrapper : public Socket {
148181
* @retval NSAPI_ERROR_PARAMETER in case the provided root_ca parameter failed parsing.
149182
*/
150183
nsapi_error_t set_client_cert_key(const char *client_cert_pem, const char *client_private_key_pem);
184+
#if defined(COMPONENT_SE050) && defined(MBEDTLS_ECDH_ALT) && SSS_HAVE_ALT_SSS
185+
nsapi_error_t set_client_cert_key(const void *client_cert, size_t client_cert_len, sss_object_t *pkeyObject, ex_sss_boot_ctx_t *deviceCtx);
186+
#endif
151187

152188
/** Send data over a TLS socket.
153189
*
@@ -329,6 +365,11 @@ class TLSSocketWrapper : public Socket {
329365
mbedtls_pk_context _pkctx;
330366
#endif
331367

368+
#if defined(COMPONENT_SE050) && defined(MBEDTLS_ECDH_ALT) && SSS_HAVE_ALT_SSS
369+
sss_object_t *_sss_key_pair_ptr = nullptr;
370+
sss_key_store_t *_sss_ks_ptr = nullptr;
371+
#endif
372+
332373
DRBG_CTX _drbg;
333374

334375
mbedtls_entropy_context _entropy;

cores/arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_uart/include/hardware/uart.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ static inline void uart_set_format(uart_inst_t *uart, uint data_bits, uint stop_
213213
*/
214214
static inline void uart_set_irq_enables(uart_inst_t *uart, bool rx_has_data, bool tx_needs_data) {
215215
uart_get_hw(uart)->imsc = (!!tx_needs_data << UART_UARTIMSC_TXIM_LSB) |
216-
(!!rx_has_data << UART_UARTIMSC_RXIM_LSB);
216+
(!!rx_has_data << UART_UARTIMSC_RXIM_LSB) |
217+
(1 << UART_UARTIMSC_RTIM_LSB);
217218
if (rx_has_data) {
218219
// Set minimum threshold
219220
hw_write_masked(&uart_get_hw(uart)->ifls, 0 << UART_UARTIFLS_RXIFLSEL_LSB,

0 commit comments

Comments
 (0)