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)