From d4b18a6d3fa31c935f0b6e28ea2ea888c1927a6b Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 12 Sep 2017 08:41:08 -0700 Subject: [PATCH] Added warning for IO callback stubs to make sure they get implemented. --- IDE/GCC-ARM/Source/tls_client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IDE/GCC-ARM/Source/tls_client.c b/IDE/GCC-ARM/Source/tls_client.c index 994c14589..6c0d03de1 100755 --- a/IDE/GCC-ARM/Source/tls_client.c +++ b/IDE/GCC-ARM/Source/tls_client.c @@ -32,12 +32,13 @@ /*------------------------------------------------------------------------*/ static int CbIORecv(WOLFSSL *ssl, char *buf, int sz, void *ctx) { - int ret = sz; + int ret = WOLFSSL_CBIO_ERR_GENERAL; (void)ssl; (void)ctx; /* TODO: Exchange data over your own transport */ + #warning TODO: Implement your own recv data transport #if 0 ret = usart_read_buffer_wait(&cdc_uart_module, buf, sz); if (ret == STATUS_ERR_TIMEOUT) @@ -51,12 +52,13 @@ static int CbIORecv(WOLFSSL *ssl, char *buf, int sz, void *ctx) static int CbIOSend(WOLFSSL *ssl, char *buf, int sz, void *ctx) { - int ret = sz; + int ret = WOLFSSL_CBIO_ERR_GENERAL; (void)ssl; (void)ctx; /* TODO: Exchange data over your own transport */ + #warning TODO: Implement your own send data transport #if 0 ret = usart_write_buffer_wait(&cdc_uart_module, buf, sz); if (ret == STATUS_ERR_TIMEOUT)