Skip to content

Commit

Permalink
Fix wolfSSL_write response code. The Wi-Fi_HTTPS_Server example is fu…
Browse files Browse the repository at this point in the history
…lly working.
  • Loading branch information
dgarske committed Nov 11, 2024
1 parent 4f3aa5e commit 17fcf97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/COMPONENT_WOLFSSL/cy_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ static int cy_tls_internal_recv(WOLFSSL* ssl, char* buffer, int length,
return WOLFSSL_CBIO_ERR_GENERAL;
}

extern char *strptime(const char *restrict s, const char *restrict format,
struct tm *restrict tm);
cy_rslt_t cy_tls_init(void)
{
cy_rslt_t result = CY_RSLT_SUCCESS;
Expand Down Expand Up @@ -415,8 +417,8 @@ cy_rslt_t cy_tls_send(void *context, const unsigned char *data, uint32_t length,
err = wolfSSL_get_error(tls_ctx->ssl, ret);
} while (err == WOLFSSL_ERROR_WANT_WRITE);

if (ret == WOLFSSL_SUCCESS) {
*bytes_sent = length;
if (ret > 0) {
*bytes_sent = ret;
result = CY_RSLT_SUCCESS;
}
else {
Expand Down

0 comments on commit 17fcf97

Please sign in to comment.