Closed marcinsmsg closed 6 years ago
On linux:
make
programs/ssl/ssl_server
in different process:
programs/ssl/ssl_client1
The problem is that IoT.js uses mbedTLS from deps/tizenrt/external/mbedtls instead of deps/mbedtls. Need to fix it.
I reproduced issue with mutex using https://google.com as server:
TASH>>wifi startsta
*****************************************************************
* Samsung System LSI wifi application for t20 *
*****************************************************************
Link call back handles registered - per default!
Starting supplicant in foreground...
1262304168.485436: Successfully initialized wpa_supplicant
1262304171.578926: wl1: callling L2_packet_init:
1262304171.578926: wl1: Own MAC address: 28:6d:97:40:21:34
STA mode started successfully
TASH>>wifi scan
*****************************************************************
* Samsung System LSI wifi application for t20 *
*****************************************************************
Link call back handles registered - per default!
Successfully started scan...waiting for result!
Scan Result - networks:
BSSID RSSI SECURITY CH SSID
1) ae:5f:3e:ec:42:52 -28 [WPA2-PSK+AES] 11 NET
TASH>>
TASH>>
TASH>>wifi join NET secret
*****************************************************************
* Samsung System LSI wifi application for t20 *
*****************************************************************
Link call back handles registered - per default!
Joining network NET
Security: wpa2_aes
Passphrase: secret
1262304193.263293: wl1: Associated with ae:5f:3e:ec:42:52
1262304193.323167: wl1: WPA: Key negotiation completed with ae:5f:3e:ec:42:52 [PTK=CCMP GTK=CCMP]
1262304193.323167: wl1: CTRL-EVENT-CONNECTED
Connected to network: bssid: ae:5f:3e:ec:42:52, ssid: NET
Successfully joined the network with SSID NET
TASH>>ifconfig wl1 dhcp
IP address 192.168.43.60
Netmask 255.255.255.0
Gateway 192.168.43.1
Default DNS 192.168.43.1
TASH>>iotjs /rom/test/run_pass/test_tls.js
TLS value
. Seeding the random number generator... ok
. Loading the CA root certificate ... ok (0 skipped)
. Connecting to tcp/172.217.16.46/443... ok
. Setting up the SSL/TLS structure... ok
. Performing the SSL/TLS handshake...up_assert: Assertion failed at file:pthread/pthread_mutexunlock.c line: 112 task: iotjs_thread
up_dumpstate: Current sp: 020bec20
up_dumpstate: User stack:
up_dumpstate: base: 020bfff8
up_dumpstate: size: 0000fffc
up_dumpstate: used: 00001ba8
up_dumpstate: User Stack
This PR was resubmitted as #146
IoT.js-DCO-1.0-Signed-off-by: Marcin m.ziombski@samsung.com