Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Update submodule 'mbedtls' and example 'tcp_client_over_ssl'
Browse files Browse the repository at this point in the history
  • Loading branch information
Giung951 committed Oct 17, 2022
1 parent 318bf49 commit 69b6e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions examples/tcp_client_over_ssl/w5x00_tcp_client_over_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "mbedtls/error.h"
#include "mbedtls/ssl.h"
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/compat-1.3.h"

/**
* ----------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -152,7 +151,7 @@ int main()
list++;
}

retval = socket((uint8_t)(g_ssl.p_bio), Sn_MR_TCP, PORT_SSL, SF_TCP_NODELAY);
retval = socket((uint8_t)(g_ssl.private_p_bio), Sn_MR_TCP, PORT_SSL, SF_TCP_NODELAY);

if (retval != SOCKET_SSL)
{
Expand All @@ -166,7 +165,7 @@ int main()

do
{
retval = connect((uint8_t)(g_ssl.p_bio), g_ssl_target_ip, PORT_SSL);
retval = connect((uint8_t)(g_ssl.private_p_bio), g_ssl_target_ip, PORT_SSL);

if ((retval == SOCK_OK) || (retval == SOCKERR_TIMEOUT))
{
Expand Down Expand Up @@ -205,7 +204,7 @@ int main()
/* Infinite loop */
while (1)
{
getsockopt((uint8_t)(g_ssl.p_bio), SO_RECVBUF, &len);
getsockopt((uint8_t)(g_ssl.private_p_bio), SO_RECVBUF, &len);

if (len > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/mbedtls

0 comments on commit 69b6e05

Please sign in to comment.