Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in while "handshake" #132

Open
sasha1396 opened this issue Feb 22, 2023 · 0 comments
Open

Stuck in while "handshake" #132

sasha1396 opened this issue Feb 22, 2023 · 0 comments

Comments

@sasha1396
Copy link

sasha1396 commented Feb 22, 2023

Hello friends! I'm trying set the SSL connection with mbedTLS library with W5500 on STM32F767. I'm using your example and files. And i'm using Hardware RNG else. Socket open is sucess, connection to the server sucess next. While "handshake" i receive last messahe: "in_left: 0, nb_want: 5" and my programm don't go next. I found out that programn stuck in recv() function in while() operator. recvsize always equal 0, getSn_RX_RSR(sn) function always return 0. What may be the problem? Why don't work timeout break? Have is it here an implementation?

image

image

My DEBUG messages:

Start
Calling DHCP_run()...

=== W5500 NET CONF : DHCP ===
MAC: EA:11:22:33:44:EA
SIP: 192.168.21.6
GAR: 192.168.21.1
SUB: 255.255.255.0
DNS: 192.168.21.1

mbedtls_ctr_drbg_seed Ok!
Loading the CA root certificate
x509_crt_parse Ok!
. Setting up the SSL/TLS structure...
mbedtls_ssl_config_defaults Ok!
mbedtls_ssl_setup Ok!
mbedtls_ssl_set_hostname Ok!
Calling DNS_init()...
Resolving domain name "fallin.ru"...
Result: 188.124.41.188
Socket open ok! Connection to the fallin.ru ok! . Performing the SSL/TLS handshake...=> handshake

=> flush output

<= flush output

client state: MBEDTLS_SSL_HELLO_REQUEST

=> flush output

<= flush output

client state: MBEDTLS_SSL_CLIENT_HELLO

=> write client hello

=> write handshake message

=> write record

<= write record

<= write handshake message

<= write client hello

=> flush output

message length: 64, out_left: 64

ssl->f_send() returned 64 (-0xffffffc0)

<= flush output

client state: MBEDTLS_SSL_SERVER_HELLO

=> parse server hello

=> read record

=> fetch input

in_left: 0, nb_want: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant